diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-08-09 09:02:00 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-08-09 09:02:00 +0000 |
| commit | ee832838951cb097685f88478d896db2a35f0efb (patch) | |
| tree | f893eb1dfb4c366e5df211680f65b298433d5937 /src/seltrans.h | |
| parent | add additional files for win32 distribution (diff) | |
| download | inkscape-ee832838951cb097685f88478d896db2a35f0efb.tar.gz inkscape-ee832838951cb097685f88478d896db2a35f0efb.zip | |
When snapping while translating, use the bounding box corners of each selected item instead of the selection as a whole (fixes bug #404941)
(bzr r8449)
Diffstat (limited to '')
| -rw-r--r-- | src/seltrans.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/seltrans.h b/src/seltrans.h index 4f47d8e20..d0ac5dccf 100644 --- a/src/seltrans.h +++ b/src/seltrans.h @@ -53,7 +53,7 @@ public: void increaseState(); void resetState(); void setCenter(Geom::Point const &p); - void grab(Geom::Point const &p, gdouble x, gdouble y, bool show_handles); + void grab(Geom::Point const &p, gdouble x, gdouble y, bool show_handles, bool translating); void transform(Geom::Matrix const &rel_affine, Geom::Point const &norm); void ungrab(); void stamp(); @@ -118,7 +118,8 @@ private: std::vector<Geom::Point> _items_centers; std::vector<std::pair<Geom::Point, int> > _snap_points; - std::vector<std::pair<Geom::Point, int> > _bbox_points; + std::vector<std::pair<Geom::Point, int> > _bbox_points; // the bbox point of the selection as a whole, i.e. max. 4 corners plus optionally some midpoints + std::vector<std::pair<Geom::Point, int> > _bbox_points_for_translating; // the bbox points of each selected item, only to be used for translating Inkscape::SelCue _selcue; |
