From: daid Date: Fri, 4 Oct 2013 06:42:42 +0000 (+0200) Subject: Fix the rotation angle display rounding bug which made 90degree rotation show up... X-Git-Tag: 13.10~24 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=cura.git;a=commitdiff_plain;h=94b0e0eb4226cc074311c66ad5d5d9a230adc02f Fix the rotation angle display rounding bug which made 90degree rotation show up as 89 in some cases. --- diff --git a/Cura/gui/util/previewTools.py b/Cura/gui/util/previewTools.py index cd94ded0..dad34622 100644 --- a/Cura/gui/util/previewTools.py +++ b/Cura/gui/util/previewTools.py @@ -209,7 +209,7 @@ class toolRotate(object): glEnd() glTranslatef(1.1,0,0) glColor4ub(0,0,0,255) - opengl.glDrawStringCenter("%d" % (abs(self.dragEndAngle - self.dragStartAngle))) + opengl.glDrawStringCenter("%d" % (abs(self.dragEndAngle - self.dragStartAngle) + 0.5)) glColor4ub(255,64,64,255) glPopMatrix() else: