summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2012-08-18 22:11:19 +0000
committerMarkus Engel <markus.engel@tum.de>2012-08-18 22:11:19 +0000
commitc2590463bfdefdbf69f5e1503533c7b4852ac7cd (patch)
treee4be5d313bff0b0395970230119430e7c076f8b7 /src/sp-shape.cpp
parentAdded "virtual pad" to SPSpiral. (diff)
downloadinkscape-c2590463bfdefdbf69f5e1503533c7b4852ac7cd.tar.gz
inkscape-c2590463bfdefdbf69f5e1503533c7b4852ac7cd.zip
As all subclasses of SPShape now have "virtual pads" with correct inheritance, the virtual function call to "onSetShape" was converted to C++ style.
(bzr r11608.1.15)
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index e0f13c62d..87b1e7607 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -509,7 +509,6 @@ void SPShape::sp_shape_update_marker_view(SPShape *shape, Inkscape::DrawingItem
void CShape::onModified(unsigned int flags) {
SPShape* shape = this->spshape;
- SPShape* object = shape;
CLPEItem::onModified(flags);
@@ -1081,9 +1080,7 @@ void CShape::onSetShape() {
*/
void SPShape::setShape()
{
- if (SP_SHAPE_CLASS (G_OBJECT_GET_CLASS (this))->set_shape) {
- SP_SHAPE_CLASS (G_OBJECT_GET_CLASS (this))->set_shape (this);
- }
+ this->cshape->onSetShape();
}
/**