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:
parent
dcc26f23c7
commit
247ddb3a5c
|
@ -459,8 +459,10 @@ namespace Katana {
|
||||||
void Session::_addMoveEvent ( TrackElement* segment, Track* track, DbU::Unit axis )
|
void Session::_addMoveEvent ( TrackElement* segment, Track* track, DbU::Unit axis )
|
||||||
{
|
{
|
||||||
if (not segment->getTrack()) {
|
if (not segment->getTrack()) {
|
||||||
cerr << Bug( " Katana::Session::addMoveEvent() : %s is not yet in a track."
|
if (not segment->isNonPref() and not segment->isReduced()) {
|
||||||
, getString(segment).c_str() ) << endl;
|
cerr << Bug( " Katana::Session::addMoveEvent() : %s is not yet in a track."
|
||||||
|
, getString(segment).c_str() ) << endl;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
_addRemoveEvent( segment );
|
_addRemoveEvent( segment );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1122,7 +1122,8 @@ namespace Katana {
|
||||||
string s2 = " [" + DbU::getValueString(_sourceU)
|
string s2 = " [" + DbU::getValueString(_sourceU)
|
||||||
+ ":" + DbU::getValueString(_targetU) + "]"
|
+ ":" + DbU::getValueString(_targetU) + "]"
|
||||||
+ " " + DbU::getValueString(_targetU-_sourceU)
|
+ " " + DbU::getValueString(_targetU-_sourceU)
|
||||||
+ " " + getString(_dogLegLevel)
|
+ " " + getString(_dogLegLevel) + " "
|
||||||
|
+ ((isNonPref() ) ? "P" : "-")
|
||||||
+ ((isRouted() ) ? "R" : "-")
|
+ ((isRouted() ) ? "R" : "-")
|
||||||
+ ((isSlackened() ) ? "S" : "-")
|
+ ((isSlackened() ) ? "S" : "-")
|
||||||
+ ((_track ) ? "T" : "-")
|
+ ((_track ) ? "T" : "-")
|
||||||
|
|
Loading…
Reference in New Issue