diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-08-04 09:10:17 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-08-04 09:10:17 +0000 |
| commit | 5753fd8392dbfa06c3c808b5248d008d008a02c8 (patch) | |
| tree | 092333efec8e95ee0c3193c505eda87fdfca21c5 /src/seltrans.cpp | |
| parent | setting of attributes and default values for feColorMatrix. (diff) | |
| download | inkscape-5753fd8392dbfa06c3c808b5248d008d008a02c8.tar.gz inkscape-5753fd8392dbfa06c3c808b5248d008d008a02c8.zip | |
Make snapping to the item's transformation center optional, but not yet available in the snapping preferences dialog
(bzr r3365)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 465813ae0..ad37e24cf 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -268,7 +268,8 @@ void Inkscape::SelTrans::grab(NR::Point const &p, gdouble x, gdouble y, bool sho // Next, get all special points for snapping - _snap_points = selection->getSnapPoints(); // Excludes path nodes + SnapManager const &m = _desktop->namedview->snap_manager; + _snap_points = selection->getSnapPoints(m.getIncludeItemCenter()); // Excludes path nodes std::vector<NR::Point> snap_points_hull = selection->getSnapPointsConvexHull(); // Includes path nodes if (_snap_points.size() > 100) { /* Snapping a huge number of nodes will take way too long, so limit the number of snappable nodes |
