From 48e6b0819d64e02bd43c199c9afa12f26a485323 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Tue, 9 May 2006 03:52:58 +0000 Subject: eliminate direct accesses to SPCurve::bpath (bzr r787) --- src/sp-offset.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sp-offset.cpp') diff --git a/src/sp-offset.cpp b/src/sp-offset.cpp index fc9115f24..6aead7a54 100644 --- a/src/sp-offset.cpp +++ b/src/sp-offset.cpp @@ -277,7 +277,7 @@ sp_offset_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) } // write that curve to "d" - char *d = sp_svg_write_path (((SPShape *) offset)->curve->bpath); + char *d = sp_svg_write_path (SP_CURVE_BPATH(((SPShape *) offset)->curve)); repr->setAttribute("d", d); g_free (d); @@ -346,7 +346,7 @@ sp_offset_set(SPObject *object, unsigned key, gchar const *value) bpath = sp_svg_read_path (offset->original); curve = sp_curve_new_from_bpath (bpath); // curve se chargera de detruire bpath g_assert (curve != NULL); - offset->originalPath = bpath_to_liv_path (curve->bpath); + offset->originalPath = bpath_to_liv_path (SP_CURVE_BPATH(curve)); sp_curve_unref (curve); offset->knotSet = false; @@ -1023,7 +1023,7 @@ sp_offset_top_point (SPOffset * offset, NR::Point *px) return; } - Path *finalPath = bpath_to_liv_path (curve->bpath); + Path *finalPath = bpath_to_liv_path (SP_CURVE_BPATH(curve)); if (finalPath == NULL) { sp_curve_unref (curve); @@ -1167,7 +1167,7 @@ refresh_offset_source(SPOffset* offset) if (curve == NULL) return; } - orig = bpath_to_liv_path (curve->bpath); + orig = bpath_to_liv_path (SP_CURVE_BPATH(curve)); sp_curve_unref (curve); -- cgit v1.2.3