[qet] [1415] Diagram loading: removed an optimization that could lead to conductors not being loaded when several terminals share the same coordinates .

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1415
Author:   xavier
Date:     2011-12-29 18:37:24 +0100 (Thu, 29 Dec 2011)
Log Message:
-----------
Diagram loading: removed an optimization that could lead to conductors not being loaded when several terminals share the same coordinates.

Modified Paths:
--------------
    branches/0.3/sources/element.cpp

Modified: branches/0.3/sources/element.cpp
===================================================================
--- branches/0.3/sources/element.cpp	2011-12-27 02:17:07 UTC (rev 1414)
+++ branches/0.3/sources/element.cpp	2011-12-29 17:37:24 UTC (rev 1415)
@@ -422,7 +422,9 @@
 				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;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/