diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-06 23:35:43 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-06 23:35:43 +0000 |
| commit | f7c4143dfc8ab6f3c7587f4547dafd89efc16405 (patch) | |
| tree | e851983fbb51c549ed3351368e01c5ee2ffa3036 /src | |
| parent | for nodepath, start using 2geompath for svg_write: sp_svg_write_path(np->curv... (diff) | |
| download | inkscape-f7c4143dfc8ab6f3c7587f4547dafd89efc16405.tar.gz inkscape-f7c4143dfc8ab6f3c7587f4547dafd89efc16405.zip | |
for path-chemistry.cpp, start using 2geompath for svg_write: sp_svg_write_path(np->curve->get_pathvector() );
(bzr r5841)
Diffstat (limited to 'src')
| -rw-r--r-- | src/path-chemistry.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 05ea6c130..35ba1f087 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -149,7 +149,7 @@ sp_selected_path_combine(void) g_free(style); // set path data corresponding to new curve - gchar *dstring = sp_svg_write_path(SP_CURVE_BPATH(curve)); + gchar *dstring = sp_svg_write_path(curve->get_pathvector()); curve->unref(); repr->setAttribute("d", dstring); if (path_effect) @@ -242,7 +242,7 @@ sp_selected_path_break_apart(void) Inkscape::XML::Node *repr = parent->document()->createElement("svg:path"); repr->setAttribute("style", style); - gchar *str = sp_svg_write_path(SP_CURVE_BPATH(curve)); + gchar *str = sp_svg_write_path(curve->get_pathvector()); repr->setAttribute("d", str); if (path_effect) repr->setAttribute("inkscape:original-d", str); @@ -466,7 +466,7 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/) repr->setAttribute("inkscape:transform-center-y", SP_OBJECT_REPR(item)->attribute("inkscape:transform-center-y"), false); /* Definition */ - gchar *def_str = sp_svg_write_path(SP_CURVE_BPATH(curve)); + gchar *def_str = sp_svg_write_path(curve->get_pathvector()); repr->setAttribute("d", def_str); g_free(def_str); curve->unref(); @@ -505,7 +505,7 @@ sp_selected_path_reverse() SPCurve *rcurve = sp_path_get_curve_reference(path)->create_reverse(); - gchar *str = sp_svg_write_path(SP_CURVE_BPATH(rcurve)); + gchar *str = sp_svg_write_path(rcurve->get_pathvector()); if ( sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(path)) ) { SP_OBJECT_REPR(path)->setAttribute("inkscape:original-d", str); } else { |
