summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-04-03 02:24:37 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-04-03 02:24:37 +0000
commit078d8b361e3b5c390a5f1b49986b7347f8003d67 (patch)
treeeced52f8cdc4e513eea574ae61fee836ff268b0a /src
parentInitial fix for the inverted coordinate system bug (diff)
downloadinkscape-078d8b361e3b5c390a5f1b49986b7347f8003d67.tar.gz
inkscape-078d8b361e3b5c390a5f1b49986b7347f8003d67.zip
Fix rotation in node and select tool
(bzr r9281.1.2)
Diffstat (limited to 'src')
-rw-r--r--src/select-context.cpp8
-rw-r--r--src/ui/tool/control-point-selection.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/select-context.cpp b/src/select-context.cpp
index 8500e9084..9035021d6 100644
--- a/src/select-context.cpp
+++ b/src/select-context.cpp
@@ -842,9 +842,9 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event)
get_group0_keyval(&event->key), 0); // with any mask
sp_selection_rotate_screen(selection, mul*1);
} else if (MOD__CTRL) {
- sp_selection_rotate(selection, 90);
+ sp_selection_rotate(selection, -90);
} else if (snaps) {
- sp_selection_rotate(selection, 180/snaps);
+ sp_selection_rotate(selection, -180/snaps);
}
ret = TRUE;
break;
@@ -854,9 +854,9 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event)
get_group0_keyval(&event->key), 0); // with any mask
sp_selection_rotate_screen(selection, -1*mul);
} else if (MOD__CTRL) {
- sp_selection_rotate(selection, -90);
+ sp_selection_rotate(selection, 90);
} else if (snaps) {
- sp_selection_rotate(selection, -180/snaps);
+ sp_selection_rotate(selection, 180/snaps);
}
ret = TRUE;
break;
diff --git a/src/ui/tool/control-point-selection.cpp b/src/ui/tool/control-point-selection.cpp
index dfbf1170a..c7fc8a3cc 100644
--- a/src/ui/tool/control-point-selection.cpp
+++ b/src/ui/tool/control-point-selection.cpp
@@ -561,9 +561,9 @@ bool ControlPointSelection::event(GdkEvent *event)
// rotates
case GDK_bracketleft:
- return _keyboardRotate(event->key, 1);
- case GDK_bracketright:
return _keyboardRotate(event->key, -1);
+ case GDK_bracketright:
+ return _keyboardRotate(event->key, 1);
// scaling
case GDK_less: