summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-02-06 13:47:36 +0530
committerbrenda-br2023-02-06 13:47:36 +0530
commit42942f4c0f6aee658ffd2c374588c402debca33d (patch)
treef28f30f08d72008fe7262d05c96d7704f75cec2f
parenta27d2a38e06cd4ab534cd0df3967446059464595 (diff)
downloadChemical-PFD-42942f4c0f6aee658ffd2c374588c402debca33d.tar.gz
Chemical-PFD-42942f4c0f6aee658ffd2c374588c402debca33d.tar.bz2
Chemical-PFD-42942f4c0f6aee658ffd2c374588c402debca33d.zip
Reconnect Lines on redo function
-rw-r--r--src/main/python/utils/undo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/python/utils/undo.py b/src/main/python/utils/undo.py
index 3cc832f..2f28964 100644
--- a/src/main/python/utils/undo.py
+++ b/src/main/python/utils/undo.py
@@ -66,6 +66,8 @@ class deleteCommand(QUndoCommand):
def redo(self):
self.scene.removeItem(self.diagramItem)
self.scene.advance()
+ if(issubclass(self.diagramItem.__class__,shapes.Line)):
+ self.reconnectLines()
def findLGIndex(self):
startIndex = None