summaryrefslogtreecommitdiffstats
path: root/src/sp-spiral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-spiral.cpp')
-rw-r--r--src/sp-spiral.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp
index abee41473..e4bd0fa21 100644
--- a/src/sp-spiral.cpp
+++ b/src/sp-spiral.cpp
@@ -300,7 +300,7 @@ sp_spiral_update_patheffect(SPLPEItem *lpeitem, bool write)
sp_spiral_set_shape(shape);
if (write) {
- Inkscape::XML::Node *repr = SP_OBJECT_REPR(shape);
+ Inkscape::XML::Node *repr = shape->getRepr();
if ( shape->curve != NULL ) {
gchar *str = sp_svg_write_path(shape->curve->get_pathvector());
repr->setAttribute("d", str);
@@ -422,9 +422,9 @@ sp_spiral_set_shape (SPShape *shape)
if (sp_lpe_item_has_broken_path_effect(SP_LPE_ITEM(shape))) {
g_warning ("The spiral shape has unknown LPE on it! Convert to path to make it editable preserving the appearance; editing it as spiral will remove the bad LPE");
- if (SP_OBJECT_REPR(shape)->attribute("d")) {
+ if (shape->getRepr()->attribute("d")) {
// unconditionally read the curve from d, if any, to preserve appearance
- Geom::PathVector pv = sp_svg_read_pathv(SP_OBJECT_REPR(shape)->attribute("d"));
+ Geom::PathVector pv = sp_svg_read_pathv(shape->getRepr()->attribute("d"));
SPCurve *cold = new SPCurve(pv);
shape->setCurveInsync( cold, TRUE);
cold->unref();
@@ -435,7 +435,7 @@ sp_spiral_set_shape (SPShape *shape)
Geom::Point darray[SAMPLE_SIZE + 1];
double t;
- SP_OBJECT (spiral)->requestModified(SP_OBJECT_MODIFIED_FLAG);
+ spiral->requestModified(SP_OBJECT_MODIFIED_FLAG);
SPCurve *c = new SPCurve ();