summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-03-30 19:04:54 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-03-30 19:04:54 +0000
commit50f5aba16205a6241855bdf0ed9d2161d8ebf897 (patch)
tree4ea334e454e5bc9411d09c9e4e4899d24837b25b /src/sp-shape.cpp
parentfix the undo-while-drawing crash in star and spiral (diff)
downloadinkscape-50f5aba16205a6241855bdf0ed9d2161d8ebf897.tar.gz
inkscape-50f5aba16205a6241855bdf0ed9d2161d8ebf897.zip
add a snappoint at the rotation-axis of any shape
(bzr r2788)
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index 453de5650..a37da6840 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -1022,6 +1022,10 @@ static void sp_shape_snappoints(SPItem const *item, SnapPointsIter p)
*p = bp->c(3) * i2d;
bp++;
}
+
+ // Additionaly, add the center for snapping
+ *p = shape->getCenter();
+
}