[qet] [3385] Bug fix: qet crash when move item with arrow keys

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


Revision: 3385
Author:   blacksun
Date:     2014-10-20 10:00:53 +0200 (Mon, 20 Oct 2014)
Log Message:
-----------
Bug fix: qet crash when move item with arrow keys

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

Modified: trunk/sources/elementsmover.cpp
===================================================================
--- trunk/sources/elementsmover.cpp	2014-10-20 07:30:57 UTC (rev 3384)
+++ trunk/sources/elementsmover.cpp	2014-10-20 08:00:53 UTC (rev 3385)
@@ -76,9 +76,11 @@
 	
 	moved_content_ = diagram -> selectedContent();
 
-	if (driver_item -> parentItem()) {
-		if (moved_content_.items().contains(driver_item -> parentItem()))
-			moved_content_.clear();
+	if (driver_item) {
+		if (driver_item -> parentItem()) {
+			if (moved_content_.items().contains(driver_item -> parentItem()))
+				moved_content_.clear();
+		}
 	}
 	
 	/* We need to save the position of conductor text (ConductorTextItem)


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