Code

fix for 415168
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 18 Aug 2009 21:57:49 +0000 (21:57 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 18 Aug 2009 21:57:49 +0000 (21:57 +0000)
src/seltrans.cpp

index 3590385273223a460ccbad3b1417ab8df4e4b153..1087ec7b56da9064a9dde913e800bd435b2ddb27 100644 (file)
@@ -525,10 +525,10 @@ void Inkscape::SelTrans::ungrab()
         if (_current_relative_affine.isTranslation()) {
             sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT,
                              _("Move"));
-        } else if (_current_relative_affine.isScale()) {
+        } else if (_current_relative_affine.without_translation().isScale()) {
             sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT,
                              _("Scale"));
-        } else if (_current_relative_affine.isRotation()) {
+        } else if (_current_relative_affine.without_translation().isRotation()) {
             sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT,
                              _("Rotate"));
         } else {