Code

fix sticking in rotation mode after click
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 17 Feb 2008 03:48:38 +0000 (03:48 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 17 Feb 2008 03:48:38 +0000 (03:48 +0000)
src/ui/widget/rotateable.cpp

index 8cc3c88e94bab46e2e0c663d993091148285b6d3..89ffa06d62e0bf923d4beb698090ac18252620d7 100644 (file)
@@ -117,11 +117,11 @@ bool Rotateable::on_release(GdkEventButton *event) {
         if (fabs(force) < 0.002)
             force = 0; // snap to zero
         do_release(force, modifier);
-        dragging = false;
-        working = false;
         current_axis = axis;
         return true;
                }
+    dragging = false;
+    working = false;
                return false;
 }