[qet] [2545] fix warning at compil

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


Revision: 2545
Author:   blacksun
Date:     2013-09-17 22:48:15 +0200 (Tue, 17 Sep 2013)
Log Message:
-----------
fix warning at compil

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

Modified: trunk/sources/diagramview.cpp
===================================================================
--- trunk/sources/diagramview.cpp	2013-09-17 20:14:30 UTC (rev 2544)
+++ trunk/sources/diagramview.cpp	2013-09-17 20:48:15 UTC (rev 2545)
@@ -426,14 +426,20 @@
 		switchToVisualisationModeIfNeeded(e);
 		fresh_focus_in_ = false;
 	}
-	if (isInteractive() && !scene -> isReadOnly() && current_behavior > noAction && e -> buttons() == Qt::LeftButton) {
+	if (isInteractive() && !scene -> isReadOnly() && e -> buttons() == Qt::LeftButton) {
 		switch (current_behavior) {
+			case noAction:
+				break;
 			case addingText:
 				addDiagramTextAtPos(mapToScene(e -> pos()));
 				break;
 			case addingImage:
 				addDiagramImageAtPos(mapToScene(e -> pos()));
 				break;
+			case dragView:
+				break;
+			default:
+				break;
 		}
 		current_behavior = noAction;
 	}


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