From adb8c26f8ba24efa98fb5114da1bb2cf15ae4155 Mon Sep 17 00:00:00 2001 From: xavier Date: Thu, 29 Dec 2011 17:37:24 +0000 Subject: [PATCH] Diagram loading: removed an optimization that could lead to conductors not being loaded when several terminals share the same coordinates. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1415 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/element.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/element.cpp b/sources/element.cpp index 6922729db..17783cc03 100644 --- a/sources/element.cpp +++ b/sources/element.cpp @@ -422,7 +422,9 @@ bool Element::fromXml(QDomElement &e, QHash &table_id_adr, bool if (p -> fromXml(qde)) { priv_id_adr.insert(qde.attribute("id").toInt(), p); terminal_trouvee = true; - break; + // We used to break here, because we did not expect + // several terminals to share the same position. + // Of course, it finally happened. } } if (!terminal_trouvee) ++ terminals_non_trouvees;