Bug in error message in AutoContact::getLentgh().

This commit is contained in:
Jean-Paul Chaput 2020-08-05 01:25:12 +02:00
parent e3515ab900
commit 5027d5d5ef
1 changed files with 6 additions and 3 deletions

View File

@ -231,9 +231,12 @@ namespace Anabatic {
DbU::Unit sideLength = (segment->isHorizontal()) ? hSideLength : vSideLength;
if ( not segment->isUnbound() and (abs(length) > sideLength) )
cerr << Error("Suspicious length:%.2f of %s."
,DbU::getValueString(length).c_str()
,getString(segment).c_str()) << endl;
cerr << Error( "AutoContact::getLength(): Suspicious length %s (> %s) of %s.\n"
" (on: %s)"
, DbU::getValueString(length).c_str()
, DbU::getValueString(sideLength).c_str()
, getString(segment).c_str()
, getString(this).c_str()) << endl;
} else {
if (segment->isHorizontal()) {
if (isSourceHook)