[qet] [3383] Improve extendTerminal, thank Runsys |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3383
Author: scorpio810
Date: 2014-10-19 23:51:13 +0200 (Sun, 19 Oct 2014)
Log Message:
-----------
Improve extendTerminal, thank Runsys
Modified Paths:
--------------
trunk/sources/qetgraphicsitem/conductor.cpp
Modified: trunk/sources/qetgraphicsitem/conductor.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/conductor.cpp 2014-10-19 11:25:03 UTC (rev 3382)
+++ trunk/sources/qetgraphicsitem/conductor.cpp 2014-10-19 21:51:13 UTC (rev 3383)
@@ -306,8 +306,8 @@
sp2 = mapFromScene(p2);
// prolonge les bornes
- newp1 = extendTerminal(sp1, o1);
- newp2 = extendTerminal(sp2, o2);
+ newp1 = extendTerminal(sp1, o1, 0.0);
+ newp2 = extendTerminal(sp2, o2, 0.0);
// distingue le depart de l'arrivee : le trajet se fait toujours de gauche a droite (apres prolongation)
if (newp1.x() <= newp2.x()) {