diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-03-21 20:46:18 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-03-21 20:46:18 +0000 |
| commit | f8d9ea73c3a28d040136d5efcd475a8f61e86bef (patch) | |
| tree | 37459c3a60e5e84561f0e6c2aff2504fec831666 /src | |
| parent | r14942@tres: ted | 2007-03-20 23:50:23 -0700 (diff) | |
| download | inkscape-f8d9ea73c3a28d040136d5efcd475a8f61e86bef.tar.gz inkscape-f8d9ea73c3a28d040136d5efcd475a8f61e86bef.zip | |
Fix for bug #1589436 - font baseline now correctly snaps in selector tool
(bzr r2726)
Diffstat (limited to 'src')
| -rw-r--r-- | src/seltrans.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 150a67c30..5ace790ec 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -255,7 +255,14 @@ void Inkscape::SelTrans::grab(NR::Point const &p, gdouble x, gdouble y, bool sho _point = p; - _snap_points = selection->getSnapPointsConvexHull(); + _snap_points = selection->getSnapPoints(); + if (_snap_points.size() > 100) { + /* Snapping a huge number of nodes will take way too long, so limit the number of snappable nodes + An average user would rarely ever try to snap such a large number of nodes anyway, because + (s)he could hardly discern which node would be snapping */ + _snap_points = selection->getSnapPointsConvexHull(); + // Unfortunately, by now we will have lost the font-baseline snappoints :-( + } _box = selection->bounds(); _bbox_points.clear(); if (_box) { |
