Code

Avoid self-snapping when dragging a rotation center, and draw the rotation center...
[inkscape.git] / src / selection.cpp
index 96c66e0c506496ec96ac1b8f99e425fb103a66e0..3f333e4e24e4569904b7dc90a41c42bc0c5c86fd 100644 (file)
@@ -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;