diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-03-21 20:41:59 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-03-21 20:41:59 +0000 |
| commit | a6c82507f599a302e85f1a2faae0c6a27d672d9e (patch) | |
| tree | 005f302120c98d8ac9bf9cc4ff6ef3d1b99f8837 /src/ui/tools/tool-base.cpp | |
| parent | Add verbs for canvas rotation. (diff) | |
| download | inkscape-a6c82507f599a302e85f1a2faae0c6a27d672d9e.tar.gz inkscape-a6c82507f599a302e85f1a2faae0c6a27d672d9e.zip | |
Add entry for canvas rotate step in Inkscape Preferences dialog.
Change default rotation step to 15 degrees.
(bzr r15605)
Diffstat (limited to 'src/ui/tools/tool-base.cpp')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index 389056762..cd5defcc6 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -760,8 +760,9 @@ bool ToolBase::root_handler(GdkEvent* event) { /* ctrl + shift, rotate */ double rotate_inc = prefs->getDoubleLimited( - "/options/rotateincrement/value", M_PI/90, M_PI/180, M_PI/4, "°" ); - + "/options/rotateincrement/value", 15, 1, 90, "°" ); + rotate_inc *= M_PI/180.0; + switch (event->scroll.direction) { case GDK_SCROLL_UP: // Do nothing |
