summaryrefslogtreecommitdiff
path: root/src/main/python/utils/graphics.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/utils/graphics.py')
-rw-r--r--src/main/python/utils/graphics.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/python/utils/graphics.py b/src/main/python/utils/graphics.py
index 979841f..a6910ae 100644
--- a/src/main/python/utils/graphics.py
+++ b/src/main/python/utils/graphics.py
@@ -146,4 +146,11 @@ class CustomScene(QGraphicsScene):
index = self.count+1
if(self.count!=0):
self.count-=1
+ currentLine = self.undoStack.command(currentIndex-index).diagramItem
+ startGrip = self.undoStack.command(currentIndex-index).startGrip
+ endGrip = self.undoStack.command(currentIndex-index).endGrip
+ index_LineGripStart = self.undoStack.command(currentIndex-index).indexLGS
+ index_LineGripEnd = self.undoStack.command(currentIndex-index).indexLGE
+ startGrip.lineGripItems[index_LineGripStart].lines.append(currentLine)
+ endGrip.lineGripItems[index_LineGripEnd].lines.append(currentLine)
self.undoStack.command(currentIndex-index).undo()