Browse Source

Fix crashes when moving a polygon after copying

Bc. Martin Kubovčík 3 năm trước cách đây
mục cha
commit
dc8e3ce2aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      labelme/app.py

+ 1 - 1
labelme/app.py

@@ -1951,9 +1951,9 @@ class MainWindow(QtWidgets.QMainWindow):
 
     def copyShape(self):
         self.canvas.endMove(copy=True)
-        self.labelList.clearSelection()
         for shape in self.canvas.selectedShapes:
             self.addLabel(shape)
+        self.labelList.clearSelection()
         self.setDirty()
 
     def moveShape(self):