diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-07-20 19:18:58 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-07-20 19:18:58 +0000 |
| commit | 1bdbb699669ead878488dbda5452305ecfe19a5d (patch) | |
| tree | fbf5f1c90af0d25ff7e813b724337a525d13c87a /src/seltrans.cpp | |
| parent | fix windows build, removing dbus from build (diff) | |
| download | inkscape-1bdbb699669ead878488dbda5452305ecfe19a5d.tar.gz inkscape-1bdbb699669ead878488dbda5452305ecfe19a5d.zip | |
- Remove some old code which snapped the rotation center to the bbox, and which discarded all of the snapping settings
- Improve the logic behind the snapping buttons, i.e. what snaps to what for each of the buttons
(bzr r9634)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 9c83dd63e..b9bf4c6ce 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -1339,25 +1339,6 @@ gboolean Inkscape::SelTrans::centerRequest(Geom::Point &pt, guint state) } } - if ( !(state & GDK_SHIFT_MASK) && _bbox ) { - // screen pixels to snap center to bbox -#define SNAP_DIST 5 - // FIXME: take from prefs - double snap_dist = SNAP_DIST / _desktop->current_zoom(); - - for (int i = 0; i < 2; i++) { - if (fabs(pt[i] - _bbox->min()[i]) < snap_dist) { - pt[i] = _bbox->min()[i]; - } - if (fabs(pt[i] - _bbox->midpoint()[i]) < snap_dist) { - pt[i] = _bbox->midpoint()[i]; - } - if (fabs(pt[i] - _bbox->max()[i]) < snap_dist) { - pt[i] = _bbox->max()[i]; - } - } - } - // status text GString *xs = SP_PX_TO_METRIC_STRING(pt[Geom::X], _desktop->namedview->getDefaultMetric()); GString *ys = SP_PX_TO_METRIC_STRING(pt[Geom::Y], _desktop->namedview->getDefaultMetric()); |
