Browse Source

fix copy here , to make copied shape is the only selected one

Hussein 13 năm trước cách đây
mục cha
commit
45666c81d5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      canvas.py

+ 2 - 0
canvas.py

@@ -137,6 +137,8 @@ class Canvas(QWidget):
             self.shapes.append(shape)
             self.selectedShape.selected = False
             self.selectedShape = shape
+            self.repaint()
+
         else:
             shape.label = self.selectedShape.label
             self.deleteSelected()