Commit e7c9aed2 authored by Immanuel Weber's avatar Immanuel Weber

fix keyboard rotation for new boxes

parent 283766b8
......@@ -971,7 +971,7 @@ class Canvas(QWidget):
def rotateOnDegree(self, direction):
angle = (self.selectedShape.currentAngle + 1. / 180. * direction * pi) % (2 * pi)
center = self.selectedShape.center
center = self.selectedShape.getCenter()
self.selectedShape.applyRotationAngle(angle, center)
self.repaint()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment