summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.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/path-chemistry.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/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index de775ac19..1cd7480aa 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -95,7 +95,7 @@ sp_selected_path_combine(void)
SPPath *path = (SPPath *) i->data;
SPCurve *c = sp_shape_get_curve(SP_SHAPE(path));
- NArtBpath *abp = nr_artpath_affine(c->bpath, SP_ITEM(path)->transform);
+ NArtBpath *abp = nr_artpath_affine(SP_CURVE_BPATH(c), SP_ITEM(path)->transform);
sp_curve_unref(c);
gchar *str = sp_svg_write_path(abp);
nr_free(abp);
@@ -178,7 +178,7 @@ sp_selected_path_break_apart(void)
gchar *style = g_strdup(SP_OBJECT(item)->repr->attribute("style"));
- NArtBpath *abp = nr_artpath_affine(curve->bpath, (SP_ITEM(path))->transform);
+ NArtBpath *abp = nr_artpath_affine(SP_CURVE_BPATH(curve), (SP_ITEM(path))->transform);
sp_curve_unref(curve);
@@ -198,7 +198,7 @@ sp_selected_path_break_apart(void)
Inkscape::XML::Node *repr = sp_repr_new("svg:path");
repr->setAttribute("style", style);
- gchar *str = sp_svg_write_path(curve->bpath);
+ gchar *str = sp_svg_write_path(SP_CURVE_BPATH(curve));
repr->setAttribute("d", str);
g_free(str);
@@ -326,7 +326,7 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 text_grouping_policy)
sp_repr_set_attr(repr, "inkscape:transform-center-y", SP_OBJECT_REPR(item)->attribute("inkscape:transform-center-y"));
/* Definition */
- gchar *def_str = sp_svg_write_path(curve->bpath);
+ gchar *def_str = sp_svg_write_path(SP_CURVE_BPATH(curve));
repr->setAttribute("d", def_str);
g_free(def_str);
sp_curve_unref(curve);
@@ -358,7 +358,7 @@ sp_selected_path_reverse()
SPCurve *rcurve = sp_curve_reverse(shape->curve);
- gchar *str = sp_svg_write_path(rcurve->bpath);
+ gchar *str = sp_svg_write_path(SP_CURVE_BPATH(rcurve));
SP_OBJECT_REPR(shape)->setAttribute("d", str);
g_free(str);