소스 검색

Fix bug when copying with right click

The previous shape was not deselected.
Michael Pitidis 13 년 전
부모
커밋
bacfd5c0b9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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