diff --git a/src/View/Geometry/Profile/UndoCommand.py b/src/View/Geometry/Profile/UndoCommand.py index 5738fe7d..efe1ad7e 100644 --- a/src/View/Geometry/Profile/UndoCommand.py +++ b/src/View/Geometry/Profile/UndoCommand.py @@ -127,7 +127,7 @@ class DelCommand(QUndoCommand): self._points.append(self._profile.point(row)) def undo(self): - for row, point in self._points: + for row, point in zip(self._rows, self._points): self._profile.insert_point(row, point) self._profile.modified()