Parcourir la source

Fix bug when copying with right click

The previous shape was not deselected.
Michael Pitidis il y a 13 ans
Parent
commit
bacfd5c0b9
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      canvas.py

+ 1 - 0
canvas.py

@@ -135,6 +135,7 @@ class Canvas(QWidget):
         del shape.line_color
         del shape.line_color
         if copy:
         if copy:
             self.shapes.append(shape)
             self.shapes.append(shape)
+            self.selectedShape.selected = False
             self.selectedShape = shape
             self.selectedShape = shape
         else:
         else:
             shape.label = self.selectedShape.label
             shape.label = self.selectedShape.label