Code

fix shift-dragging (no snap) of rotation center
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 8 Mar 2007 19:10:29 +0000 (19:10 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 8 Mar 2007 19:10:29 +0000 (19:10 +0000)
src/seltrans.cpp

index 067c648598ceeb96d42d67779c5b6dce523010c0..42a46adb24270f55ae676a7dca6fccb26b4de4f3 100644 (file)
@@ -706,7 +706,7 @@ gboolean Inkscape::SelTrans::handleRequest(SPKnot *knot, NR::Point *position, gu
         *position = _point + ( *position - _point ) / 10;
     }
 
-    if (!(state & GDK_SHIFT_MASK) == !(_state == STATE_ROTATE)) {
+    if ((!(state & GDK_SHIFT_MASK) == !(_state == STATE_ROTATE)) && (&handle != &handle_center)) {
         _origin = _opposite;
     } else {
         _origin = _center;