Rotate cw when using free rotation button to be consistent with icon. #1171

This commit is contained in:
Alessandro Ranellucci 2013-06-13 10:27:47 +02:00
parent aee7b70d79
commit 5dcf277563

View File

@ -425,6 +425,7 @@ sub rotate {
if (!defined $angle) {
$angle = Wx::GetNumberFromUser("", "Enter the rotation angle:", "Rotate", $object->rotate, -364, 364, $self);
return if !$angle || $angle == -1;
$angle = 0 - $angle; # rotate clockwise (be consistent with button icon)
}
$object->rotate($object->rotate + $angle);