From 3eb3f52bc84b8c16728c6c14fdf11a5866e9ca0b Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 9 Apr 2021 13:54:46 +0200 Subject: [PATCH] Refining check in AutoSegment::isMiddleStack(). * Change: In AutoSegment::isMiddleStack(), reject configurations where we have a Tee in the same direction as the segment. That is, (HTee + H) or (VTee + V). It is unlikely that the two segments of the tee will be of null size. --- anabatic/src/AutoSegment.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/anabatic/src/AutoSegment.cpp b/anabatic/src/AutoSegment.cpp index 99aa833e..d4a97c65 100644 --- a/anabatic/src/AutoSegment.cpp +++ b/anabatic/src/AutoSegment.cpp @@ -1634,13 +1634,21 @@ namespace Anabatic { return false; } } else if ((source->isHTee() or target->isHTee()) and isHorizontal()) { - cdebug_log(149,0) << "| false, S/T HTee and horizontal. " << this << endl; + cdebug_log(149,0) << "| false, S/T HTee+Terminal and horizontal. " << this << endl; return false; } else if ((source->isVTee() or target->isVTee()) and isVertical()) { - cdebug_log(149,0) << "| false, S/T VTee and vertical. " << this << endl; + cdebug_log(149,0) << "| false, S/T VTee+Terminal and vertical. " << this << endl; return false; } } + + if ((source->isHTee() or target->isHTee()) and isHorizontal()) { + cdebug_log(149,0) << "| false, S/T HTee and horizontal. " << this << endl; + return false; + } else if ((source->isVTee() or target->isVTee()) and isVertical()) { + cdebug_log(149,0) << "| false, S/T VTee and vertical. " << this << endl; + return false; + } cdebug_log(149,0) << " Middle stack or terminal bound." << endl; return true; }