mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Fix move up method.
This commit is contained in:
1 parent
ba7171326c
commit
a6341dedd2
2 files changed
+4
-5
No files matched your search
@@ -168,11 +168,10 @@ class GeometryReachTableModel(PamhyrTableModel):
|
||||
if row <= 0:
|
||||
return
|
||||
|
||||
row = self.get_true_data_row(row)
|
||||
target = row + 2
|
||||
|
||||
target = row + 1
|
||||
self.beginMoveRows(parent, row - 1, row - 1, parent, target)
|
||||
|
||||
row = self.get_true_data_row(row)
|
||||
self._undo.push(
|
||||
MoveCommand(
|
||||
self._data, "up", row
|
||||
@@ -186,11 +185,11 @@ class GeometryReachTableModel(PamhyrTableModel):
|
||||
if row >= self._data.number_profiles-1:
|
||||
return
|
||||
|
||||
row = self.get_true_data_row(row)
|
||||
target = row
|
||||
|
||||
self.beginMoveRows(parent, row + 1, row + 1, parent, target)
|
||||
|
||||
row = self.get_true_data_row(row)
|
||||
self._undo.push(
|
||||
MoveCommand(
|
||||
self._data, "down", row
|
||||
|
||||
Reference in new issue
Block a user