提交 dc4967b3 编写于 作者: L LATENTIX\ht 提交者: Kentaro Wada

Fixing potential bug

上级 2eb18d12
......@@ -360,10 +360,11 @@ class Canvas(QtWidgets.QWidget):
self.overrideCursor(CURSOR_GRAB)
if self.movingShape:
# Only save if changes have actually been made
currentShapeIndex = self.shapes.index(self.hShape)
if not self.shapesBackups[-1][currentShapeIndex].points == self.shapes[currentShapeIndex].points:
self.storeShapes()
self.shapeMoved.emit()
if self.hShape is not None:
currentShapeIndex = self.shapes.index(self.hShape)
if not self.shapesBackups[-1][currentShapeIndex].points == self.shapes[currentShapeIndex].points:
self.storeShapes()
self.shapeMoved.emit()
def endMove(self, copy):
assert self.selectedShapes and self.selectedShapesCopy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册