Ver código fonte

Fix bug when copying with right click

The previous shape was not deselected.
Michael Pitidis 13 anos atrás
pai
commit
bacfd5c0b9
1 arquivos alterados com 1 adições e 0 exclusões
  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