mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Improve extendTerminal, thank Runsys
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3383 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -306,8 +306,8 @@ void Conductor::generateConductorPath(const QPointF &p1, Qet::Orientation o1, co
|
||||
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()) {
|
||||
|
||||
Reference in New Issue
Block a user