Code

Fix rotation in node and select tool
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Sat, 3 Apr 2010 02:24:37 +0000 (04:24 +0200)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Sat, 3 Apr 2010 02:24:37 +0000 (04:24 +0200)
src/select-context.cpp
src/ui/tool/control-point-selection.cpp

index 8500e90846866472e3177afac6e7b03b94d0f3c6..9035021d691d16270d819cee61c7f2ebf858ff66 100644 (file)
@@ -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;
index dfbf1170a1c317eafb90b580841487729a95c683..c7fc8a3cc041058dbadf1a28d6875c2010cf8c5d 100644 (file)
@@ -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: