diff --git a/anabatic/src/AutoSegment.cpp b/anabatic/src/AutoSegment.cpp index f31b1ead..0cbc66e5 100644 --- a/anabatic/src/AutoSegment.cpp +++ b/anabatic/src/AutoSegment.cpp @@ -906,12 +906,12 @@ namespace Anabatic { sourceAxis = getSourceU(); targetAxis = getTargetU(); - if (not isNotAligned()) { + //if (not isNotAligned()) { for( AutoSegment* aligned : const_cast(this)->getAligneds() ) { sourceAxis = std::min( sourceAxis, aligned->getSourceU() ); - targetAxis = std::min( targetAxis, aligned->getTargetU() ); + targetAxis = std::max( targetAxis, aligned->getTargetU() ); } - } + //} }