Explorar o código

Fix crashes when moving a polygon after copying

Bc. Martin Kubovčík %!s(int64=3) %!d(string=hai) anos
pai
achega
dc8e3ce2aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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):