summaryrefslogtreecommitdiffstats
path: root/src/sp-offset.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-05-09 03:52:58 +0000
committermental <mental@users.sourceforge.net>2006-05-09 03:52:58 +0000
commit48e6b0819d64e02bd43c199c9afa12f26a485323 (patch)
tree9e7ef9cdd55a75cf222d513f91317d87e02d090f /src/sp-offset.cpp
parentpartial GTKmmfication and HIGification by Jonathon Jongsma (diff)
downloadinkscape-48e6b0819d64e02bd43c199c9afa12f26a485323.tar.gz
inkscape-48e6b0819d64e02bd43c199c9afa12f26a485323.zip
eliminate direct accesses to SPCurve::bpath
(bzr r787)
Diffstat (limited to 'src/sp-offset.cpp')
-rw-r--r--src/sp-offset.cpp8
1 files changed, 4 insertions, 4 deletions
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);