diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2015-07-24 19:38:06 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2015-07-24 19:38:06 +0000 |
| commit | f873250f0c426d7b281acd37d65c4e549eb204a3 (patch) | |
| tree | 384b4f74b13edfdfc67b2faf150d422277a05d63 /src/ui/tools | |
| parent | Fix a bug continuing a bezier path whith a LPE one like spiro or bspline on a... (diff) | |
| download | inkscape-f873250f0c426d7b281acd37d65c4e549eb204a3.tar.gz inkscape-f873250f0c426d7b281acd37d65c4e549eb204a3.zip | |
Make persistence of snap indicator configurable, and clean up the snapping tab in the preferences dialog
Fixed bugs:
- https://launchpad.net/bugs/1420301
(bzr r14253)
Diffstat (limited to 'src/ui/tools')
| -rw-r--r-- | src/ui/tools/tool-base.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/tools/tool-base.h b/src/ui/tools/tool-base.h index 7a6ab83e7..58eb6f88e 100644 --- a/src/ui/tools/tool-base.h +++ b/src/ui/tools/tool-base.h @@ -75,7 +75,12 @@ public: Inkscape::Preferences *prefs = Inkscape::Preferences::get(); double value = prefs->getDoubleLimited("/options/snapdelay/value", 0, 0, 1000); - _timer_id = g_timeout_add(value, &sp_event_context_snap_watchdog_callback, this); + // We used to have this specified in milliseconds; this has changed to seconds now for consistency's sake + if (value > 1) { // Apparently we have an old preference file, this value must have been in milliseconds; + value = value / 1000.0; // now convert this value to seconds + } + + _timer_id = g_timeout_add(value*1000.0, &sp_event_context_snap_watchdog_callback, this); _event = gdk_event_copy((GdkEvent*) event); ((GdkEventMotion *)_event)->time = GDK_CURRENT_TIME; |
