fix discrepancy between manual (user dialog) and incremental (UI button) Z rotation

This commit is contained in:
Michael Kirsch 2019-05-26 11:53:14 +02:00 committed by Joseph Lenox
parent 53ed1cd992
commit a7698b3d5b

View File

@ -1676,6 +1676,8 @@ sub rotate {
$angle = Wx::GetTextFromUser("Enter the rotation angle:", "Rotate around $axis_name axis",
$default, $self);
return if !$angle || $angle !~ /^-?\d*(?:\.\d*)?$/ || $angle == -1;
$angle = $angle - $default;
}
$self->stop_background_process;