chiark / gitweb /
Fix the rotation angle display rounding bug which made 90degree rotation show up...
authordaid <daid303@gmail.com>
Fri, 4 Oct 2013 06:42:42 +0000 (08:42 +0200)
committerdaid <daid303@gmail.com>
Fri, 4 Oct 2013 06:42:42 +0000 (08:42 +0200)
Cura/gui/util/previewTools.py

index cd94ded0589e4eb51c4dcac53ed6e32136edd4ef..dad34622a94792da63eb12b7428ec85253896f64 100644 (file)
@@ -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: