Fixed bad perpand interval computation in AutoSegment::getTopologicalinfos().

This commit is contained in:
Jean-Paul Chaput 2022-10-27 19:47:44 +02:00
parent dbfcfae1e8
commit 47b26476b7
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}