summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/path.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-06 01:43:35 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-06 01:43:35 +0000
commit8a38c52bce619b07117cdd87a183eb05fb51e28e (patch)
tree39b9f2af1ce9df43884a3b33ca2445097fe8f5a5 /src/live_effects/parameter/path.cpp
parentoops. sys/wait.h not on win32 (diff)
downloadinkscape-8a38c52bce619b07117cdd87a183eb05fb51e28e.tar.gz
inkscape-8a38c52bce619b07117cdd87a183eb05fb51e28e.zip
merge gsoc2008_johan_path2geom into trunk
(bzr r5823)
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
-rw-r--r--src/live_effects/parameter/path.cpp12
1 files changed, 6 insertions, 6 deletions
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<Geom::D2<Geom::SBasis>
{
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<Geom::Path> 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();