[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3521
Author: blacksun
Date: 2014-11-26 23:44:33 +0100 (Wed, 26 Nov 2014)
Log Message:
-----------
Bug fix
Modified Paths:
--------------
trunk/sources/diagramcommands.cpp
Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp 2014-11-26 22:05:37 UTC (rev 3520)
+++ trunk/sources/diagramcommands.cpp 2014-11-26 22:44:33 UTC (rev 3521)
@@ -80,10 +80,14 @@
foreach(Element *e, removed_content.elements) {
diagram -> addItem(e);
- //Relink this element with other
- foreach (Element *elmt, m_link_hash[e])
- e -> linkToElement(elmt);
}
+
+ //We relink element after every element was added to diagram
+ foreach(Element *e, removed_content.elements) {
+ foreach (Element *elmt, m_link_hash[e]) {
+ e -> linkToElement(elmt);
+ }
+ }
foreach(Conductor *c, removed_content.conductors(DiagramContent::AnyConductor)) {
diagram -> addItem(c);