Browse Source

Fix crashes when moving a polygon after copying

Bc. Martin Kubovčík 3 years ago
parent
commit
dc8e3ce2aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      labelme/app.py

+ 1 - 1
labelme/app.py

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