From e1db2612978dc4bca7d83ab3a4208c7523c67365 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 9 May 2008 09:37:08 +0000 Subject: - try to use more forward declarations for less dependencies on display/curve.h - change _bpath to private member of SPCurve, obtain and set with get_bpath and set_bpath. - added const methods, so protect changes to _bpath in SPCurve (bzr r5636) --- src/path-chemistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index d43d950fb..5b57e326e 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -435,7 +435,7 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/) // Prevent empty paths from being added to the document // otherwise we end up with zomby markup in the SVG file - if(curve->end <= 0) + if(curve->_end <= 0) { curve->unref(); return NULL; @@ -503,7 +503,7 @@ sp_selected_path_reverse() did = true; SPPath *path = SP_PATH(i->data); - SPCurve *rcurve = sp_path_get_curve_reference(path)->reverse(); + SPCurve *rcurve = sp_path_get_curve_reference(path)->create_reverse(); gchar *str = sp_svg_write_path(SP_CURVE_BPATH(rcurve)); if ( sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(path)) ) { -- cgit v1.2.3