summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2010-07-24 12:37:50 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2010-07-24 12:37:50 +0000
commita96bb3e891e103864fe501a92bad96a9ad04351e (patch)
tree2da50f7f546322c122ac26884870f87e03b613c5 /src/selection.cpp
parentsupport for transform elements (Bug 600473) (diff)
downloadinkscape-a96bb3e891e103864fe501a92bad96a9ad04351e.tar.gz
inkscape-a96bb3e891e103864fe501a92bad96a9ad04351e.zip
Avoid self-snapping when dragging a rotation center, and draw the rotation center at the snapped position
(bzr r9641)
Diffstat (limited to 'src/selection.cpp')
-rw-r--r--src/selection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index 96c66e0c5..3f333e4e2 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -406,6 +406,8 @@ Geom::OptRect Selection::boundsInDocument(SPItem::BBoxType type) const {
}
/** Extract the position of the center from the first selected object */
+// If we have a selection of multiple items, then the center of the first item
+// will be returned; this is also the case in SelTrans::centerRequest()
boost::optional<Geom::Point> Selection::center() const {
GSList *items = (GSList *) const_cast<Selection *>(this)->itemList();
Geom::Point center;