Selaa lähdekoodia

Fix bug when copying with right click

The previous shape was not deselected.
Michael Pitidis 13 vuotta sitten
vanhempi
commit
bacfd5c0b9
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      canvas.py

+ 1 - 0
canvas.py

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