Negative angles will return negative number of rotations thus never looping the rotation.

This commit is contained in:
ZachBora 2011-10-02 22:26:44 -03:00
parent 24056df78a
commit bb609a47c2

View File

@ -126,7 +126,7 @@ public class CuboidClipboard {
return;
}
boolean reverse = angle < 0;
int numRotations = (int)Math.floor(angle / 90.0);
int numRotations = Math.abs((int)Math.floor(angle / 90.0));
int width = getWidth();
int length = getLength();