diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-07-24 12:37:50 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-07-24 12:37:50 +0000 |
| commit | a96bb3e891e103864fe501a92bad96a9ad04351e (patch) | |
| tree | 2da50f7f546322c122ac26884870f87e03b613c5 /src/selection.cpp | |
| parent | support for transform elements (Bug 600473) (diff) | |
| download | inkscape-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.cpp | 2 |
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; |
