Be a bit more lax for out of bound requests in Track::getBeginIndex().
This commit is contained in:
parent
ba23a362fb
commit
a94a290c9b
|
@ -428,8 +428,8 @@ namespace Katana {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (position < _min) {
|
if (position < _min - getLayerGauge()->getPitch()*2) {
|
||||||
cerr << Warning( " Position %s inferior to the lower bound of %s. Returning npos."
|
cerr << Warning( " Position %s too far outside the lower bound of %s. Returning npos."
|
||||||
, DbU::getValueString(position).c_str()
|
, DbU::getValueString(position).c_str()
|
||||||
, getString(this).c_str() ) << endl;
|
, getString(this).c_str() ) << endl;
|
||||||
state = BeforeFirstElement;
|
state = BeforeFirstElement;
|
||||||
|
@ -437,8 +437,8 @@ namespace Katana {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (position > _max) {
|
if (position > _max + getLayerGauge()->getPitch()*2) {
|
||||||
cerr << Warning( " Position %s superior to the upper bound of %s. Returning npos."
|
cerr << Warning( " Position %s is too far outside the upper bound of %s. Returning npos."
|
||||||
, DbU::getValueString(position).c_str()
|
, DbU::getValueString(position).c_str()
|
||||||
, getString(this).c_str() ) << endl;
|
, getString(this).c_str() ) << endl;
|
||||||
state = AfterLastElement;
|
state = AfterLastElement;
|
||||||
|
|
Loading…
Reference in New Issue