[qet] qet/qet: [4828] Fix crash

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


Revision: 4828
Author:   blacksun
Date:     2017-01-02 14:42:16 +0100 (Mon, 02 Jan 2017)
Log Message:
-----------
Fix crash

Modified Paths:
--------------
    trunk/sources/diagram.cpp

Modified: trunk/sources/diagram.cpp
===================================================================
--- trunk/sources/diagram.cpp	2017-01-01 23:37:42 UTC (rev 4827)
+++ trunk/sources/diagram.cpp	2017-01-02 13:42:16 UTC (rev 4828)
@@ -1036,6 +1036,12 @@
 
 	switch (item->type())
 	{
+		case Element::Type:
+		{
+			Element *elmt = static_cast<Element*>(item);
+			elmt->unlinkAllElements();
+		}
+			break;
 		case Conductor::Type:
 		{
 			Conductor *conductor = static_cast<Conductor *>(item);


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