Code

rationalize function names and remove spurious soft_ptr
[inkscape.git] / src / seltrans.h
index 8ac56766e6ea6151e1d8c780f5f7f9e0bd549f48..5326c7b87b1db1ebf0bae610a14dfac51ed3cc8a 100644 (file)
@@ -97,6 +97,7 @@ private:
     SPDesktop *_desktop;
 
     std::vector<std::pair<SPItem *, NR::Matrix> > _items;
+    std::vector<std::pair<SPItem *, NR::Point> > _items_centers;
     
     std::vector<NR::Point> _snap_points;
     std::vector<NR::Point> _bbox_points;
@@ -116,7 +117,10 @@ private:
     gdouble _strokewidth;
     NR::Matrix _current;
     NR::Point _opposite; ///< opposite point to where a scale is taking place
+
     NR::Point _center;
+    bool _center_is_set; ///< we've already set _center, no need to reread it from items
+
     SPKnot *_shandle[8];
     SPKnot *_rhandle[8];
     SPKnot *_chandle;