From 47b26476b728985288cc6aedd75c2acd9a1cd0b8 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 27 Oct 2022 19:47:44 +0200 Subject: [PATCH] Fixed bad perpand interval computation in AutoSegment::getTopologicalinfos(). --- anabatic/src/AutoSegment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/anabatic/src/AutoSegment.cpp b/anabatic/src/AutoSegment.cpp index 7250b0ac..2f623e53 100644 --- a/anabatic/src/AutoSegment.cpp +++ b/anabatic/src/AutoSegment.cpp @@ -1,7 +1,7 @@ // -*- C++ -*- // // This file is part of the Coriolis Software. -// Copyright (c) UPMC 2008-2018, All Rights Reserved +// Copyright (c) Sorbonne Université 2008-2022, All Rights Reserved // // +-----------------------------------------------------------------+ // | C O R I O L I S | @@ -3293,8 +3293,8 @@ namespace Anabatic { } } - if (isSourceBoundToChannel) rightBound -= (leftBound + rightBound)/2; - if (isTargetBoundToChannel) leftBound += (leftBound + rightBound)/2; + if (isSourceBoundToChannel) leftBound += (rightBound - leftBound)/2; + if (isTargetBoundToChannel) rightBound -= (rightBound - leftBound)/2; cdebug_tabw(145,-1); }