From 50f5aba16205a6241855bdf0ed9d2161d8ebf897 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Fri, 30 Mar 2007 19:04:54 +0000 Subject: add a snappoint at the rotation-axis of any shape (bzr r2788) --- src/sp-shape.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sp-shape.cpp') 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(); + } -- cgit v1.2.3