summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-08-07 10:53:12 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2011-08-07 10:53:12 +0000
commit75976ea07dba9b97186667524d0a76603de416af (patch)
tree4cb68dabb3cb7d5219e6ed6b660f0ded13fc25d3 /src/sp-shape.cpp
parentFix compilation (oops). (diff)
downloadinkscape-75976ea07dba9b97186667524d0a76603de416af.tar.gz
inkscape-75976ea07dba9b97186667524d0a76603de416af.zip
Rewrite NRArena -> Inkscape::Drawing. Call render and update
methods on the Drawing rather than on the root DrawingItem. (bzr r10347.1.25)
Diffstat (limited to '')
-rw-r--r--src/sp-shape.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index 1512898f5..eff0665af 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -852,12 +852,12 @@ sp_shape_print (SPItem *item, SPPrintContext *ctx)
/**
* Sets style, path, and paintbox. Updates marker views, including dimensions.
*/
-Inkscape::DrawingItem * SPShape::sp_shape_show(SPItem *item, NRArena *arena, unsigned int /*key*/, unsigned int /*flags*/)
+Inkscape::DrawingItem * SPShape::sp_shape_show(SPItem *item, Inkscape::Drawing &drawing, unsigned int /*key*/, unsigned int /*flags*/)
{
SPObject *object = item;
SPShape *shape = SP_SHAPE(item);
- Inkscape::DrawingShape *s = new Inkscape::DrawingShape(arena);
+ Inkscape::DrawingShape *s = new Inkscape::DrawingShape(drawing);
s->setStyle(object->style);
s->setPath(shape->curve);
Geom::OptRect paintbox = item->getBounds(Geom::identity());
@@ -1015,8 +1015,6 @@ sp_shape_marker_release (SPObject *marker, SPShape *shape)
/* Hide marker */
for (v = item->display; v != NULL; v = v->next) {
sp_marker_hide ((SPMarker *) (shape->marker[i]), v->arenaitem->key() + i);
- /* fixme: Do we need explicit remove here? (Lauris) */
- /* v->arenaitem->setMask(NULL); */
}
/* Detach marker */
shape->release_connect[i].disconnect();
@@ -1066,8 +1064,6 @@ sp_shape_set_marker (SPObject *object, unsigned int key, const gchar *value)
for (v = item->display; v != NULL; v = v->next) {
sp_marker_hide ((SPMarker *) (shape->marker[key]),
v->arenaitem->key() + key);
- /* fixme: Do we need explicit remove here? (Lauris) */
- /* v->arenaitem->setMask(NULL); */
}
/* Unref marker */