Suppress wrong error message in Katana::Session::_addMoveEvent().

* Bug: In Katana::Session::_addMoveEvent(), an error message is issued if
   the segment is not *already* in a Track. But, it is not the case for
   non-preferred Segment or reduced segment and it is valid. So suppress
   the message in those cases.
This commit is contained in:
Jean-Paul Chaput 2021-11-03 14:26:53 +01:00
parent dcc26f23c7
commit 247ddb3a5c
2 changed files with 6 additions and 3 deletions

View File

@ -459,8 +459,10 @@ namespace Katana {
void Session::_addMoveEvent ( TrackElement* segment, Track* track, DbU::Unit axis )
{
if (not segment->getTrack()) {
cerr << Bug( " Katana::Session::addMoveEvent() : %s is not yet in a track."
, getString(segment).c_str() ) << endl;
if (not segment->isNonPref() and not segment->isReduced()) {
cerr << Bug( " Katana::Session::addMoveEvent() : %s is not yet in a track."
, getString(segment).c_str() ) << endl;
}
} else {
_addRemoveEvent( segment );
}

View File

@ -1122,7 +1122,8 @@ namespace Katana {
string s2 = " [" + DbU::getValueString(_sourceU)
+ ":" + DbU::getValueString(_targetU) + "]"
+ " " + DbU::getValueString(_targetU-_sourceU)
+ " " + getString(_dogLegLevel)
+ " " + getString(_dogLegLevel) + " "
+ ((isNonPref() ) ? "P" : "-")
+ ((isRouted() ) ? "R" : "-")
+ ((isSlackened() ) ? "S" : "-")
+ ((_track ) ? "T" : "-")