[qet] [3604] Conductor : extend terminal return a point snapped to the diagram grid

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


Revision: 3604
Author:   blacksun
Date:     2015-01-11 21:39:58 +0100 (Sun, 11 Jan 2015)
Log Message:
-----------
Conductor : extend terminal return a point snapped to the diagram grid

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/conductor.cpp

Modified: trunk/sources/qetgraphicsitem/conductor.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/conductor.cpp	2015-01-11 20:23:42 UTC (rev 3603)
+++ trunk/sources/qetgraphicsitem/conductor.cpp	2015-01-11 20:39:58 UTC (rev 3604)
@@ -329,7 +329,7 @@
 	// debut du trajet
 	points << depart0;
 	
-	// prolongement de la borne de depart 
+	// prolongement de la borne de depart
 	points << depart;
 	
 	// commence le vrai trajet
@@ -414,7 +414,7 @@
 			break;
 		default: extended_terminal = terminal;
 	}
-	return(extended_terminal);
+	return(Diagram::snapToGrid(extended_terminal));
 }
 
 /**


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