From 8a38c52bce619b07117cdd87a183eb05fb51e28e Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 6 Jun 2008 01:43:35 +0000 Subject: merge gsoc2008_johan_path2geom into trunk (bzr r5823) --- src/live_effects/parameter/path.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/live_effects/parameter/path.cpp') diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 376e61bee..759e9f788 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -113,10 +113,10 @@ PathParam::param_readSVGValue(const gchar * strvalue) } catch (Inkscape::BadURIException &e) { g_warning("%s", e.what()); ref.detach(); - _pathvector = SVGD_to_2GeomPath(defvalue); + _pathvector = sp_svg_read_pathv(defvalue); } } else { - _pathvector = SVGD_to_2GeomPath(strvalue); + _pathvector = sp_svg_read_pathv(strvalue); } signal_path_changed.emit(); @@ -132,7 +132,7 @@ PathParam::param_getSVGValue() const if (href) { return href; } else { - gchar * svgd = SVGD_from_2GeomPath( _pathvector ); + gchar * svgd = sp_svg_write_path( _pathvector ); return svgd; } } @@ -233,7 +233,7 @@ PathParam::param_set_and_write_new_value (Geom::Piecewise { remove_link(); _pathvector = Geom::path_from_piecewise(newpath, LPE_CONVERSION_TOLERANCE); - gchar * svgd = SVGD_from_2GeomPath( _pathvector ); + gchar * svgd = sp_svg_write_path( _pathvector ); param_write_to_repr(svgd); g_free(svgd); // force value upon pwd2 and don't recalculate. @@ -248,7 +248,7 @@ PathParam::param_set_and_write_new_value (std::vector const & newpat _pathvector = newpath; must_recalculate_pwd2 = true; - gchar * svgd = SVGD_from_2GeomPath( _pathvector ); + gchar * svgd = sp_svg_write_path( _pathvector ); param_write_to_repr(svgd); g_free(svgd); } @@ -324,7 +324,7 @@ PathParam::linked_modified(SPObject *linked_obj, guint /*flags*/) if (curve == NULL) { // curve invalid, set default value - _pathvector = SVGD_to_2GeomPath(defvalue); + _pathvector = sp_svg_read_pathv(defvalue); } else { _pathvector = BPath_to_2GeomPath(SP_CURVE_BPATH(curve)); curve->unref(); -- cgit v1.2.3