Code

LPE: implement NEW path-along-path effect, i think that old one has become obsolete...
[inkscape.git] / src / live_effects / parameter / path.cpp
index 2b558d2dda59a93858a5e62211aa15687df1d393..68f7be4a946a05a79bc2d962ea91ece3e5362c0f 100644 (file)
@@ -147,6 +147,15 @@ PathParam::param_write_to_repr(const char * svgd)
 }
 
 
+void
+PathParam::param_set_and_write_new_value (Geom::Piecewise<Geom::D2<Geom::SBasis> > newpath)
+{
+    const std::vector<Geom::Path> temppath = Geom::path_from_piecewise(newpath, LPE_CONVERSION_TOLERANCE);
+    gchar * svgd = SVGD_from_2GeomPath( temppath );
+    param_write_to_repr(svgd);
+    g_free(svgd);
+}
+
 /* CALLBACK FUNCTIONS FOR THE BUTTONS */
 void
 PathParam::on_edit_button_click()