From cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 17 Jan 2012 21:25:50 +0100 Subject: turn SPPath into a class, and add some methods... (bzr r10897) --- src/path-chemistry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index b2680acce..3714f3531 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -104,7 +104,7 @@ sp_selected_path_combine(SPDesktop *desktop) did = true; } - SPCurve *c = sp_path_get_curve_for_edit(SP_PATH(item)); + SPCurve *c = SP_PATH(item)->get_curve_for_edit(); if (first == NULL) { // this is the topmost path first = item; parent = first->getRepr()->parent(); @@ -211,7 +211,7 @@ sp_selected_path_break_apart(SPDesktop *desktop) SPPath *path = SP_PATH(item); - SPCurve *curve = sp_path_get_curve_for_edit(path); + SPCurve *curve = path->get_curve_for_edit(); if (curve == NULL) { continue; } @@ -617,7 +617,7 @@ sp_selected_path_reverse(SPDesktop *desktop) did = true; SPPath *path = SP_PATH(i->data); - SPCurve *rcurve = sp_path_get_curve_reference(path)->create_reverse(); + SPCurve *rcurve = path->get_curve_reference()->create_reverse(); gchar *str = sp_svg_write_path(rcurve->get_pathvector()); if ( sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(path)) ) { -- cgit v1.2.3