diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-11-16 21:33:00 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-11-16 21:33:00 +0000 |
| commit | a99ac9bf6ca7af0a92c48974daf98f393fa387e5 (patch) | |
| tree | cafb283c32db195eab5dcdf32b6d0fca1ba25fe5 /src/seltrans.cpp | |
| parent | listing contributors on inkex.py (diff) | |
| download | inkscape-a99ac9bf6ca7af0a92c48974daf98f393fa387e5.tar.gz inkscape-a99ac9bf6ca7af0a92c48974daf98f393fa387e5.zip | |
Fix display of snap source indicator for constrained snapping in the selector tool
(bzr r9898)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 7ea2a86c0..f96fce228 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -401,21 +401,6 @@ void Inkscape::SelTrans::grab(Geom::Point const &p, gdouble x, gdouble y, bool s g_warning("Checking number of snap sources failed; nothing serious, but please report to Diederik"); } - // Optionally, show the snap source - if (!(_state == STATE_ROTATE && x != 0.5 && y != 0.5)) { // but not when we're dragging a rotation handle, because that won't snap - // Now either _bbox_points or _snap_points has a single element, the other one has zero..... or both have zero elements - if ((_snap_points.size() + _bbox_points.size() + _bbox_points_for_translating.size()) > 1) { - g_warning("too many snap sources to display, please fix this"); - } else if (m.snapprefs.getSnapEnabledGlobally()) { - if (_bbox_points.size() == 1) { - _desktop->snapindicator->set_new_snapsource(_bbox_points.at(0)); - } else if (_bbox_points_for_translating.size() == 1) { - _desktop->snapindicator->set_new_snapsource(_bbox_points_for_translating.at(0)); - } else if (_snap_points.size() == 1){ - _desktop->snapindicator->set_new_snapsource(_snap_points.at(0)); - } - } - } } if ((x != -1) && (y != -1)) { |
