whoops, sorry...
This commit is contained in:
parent
8932bcf7bc
commit
7ba68a0718
|
@ -1024,12 +1024,18 @@ namespace Katana {
|
||||||
// << j+1 << "=[" << DbU::getValueString(gapsetCurr.sourceU(j+1))
|
// << j+1 << "=[" << DbU::getValueString(gapsetCurr.sourceU(j+1))
|
||||||
// << " " << DbU::getValueString(gapsetCurr.targetU(j+1)) << "]" << endl;
|
// << " " << DbU::getValueString(gapsetCurr.targetU(j+1)) << "]" << endl;
|
||||||
AutoSegment* first = _segments[gapsetCurr.span(j+1).first]->base();
|
AutoSegment* first = _segments[gapsetCurr.span(j+1).first]->base();
|
||||||
for ( AutoSegment* segment : first->getAligneds() ) {
|
|
||||||
if (segment->getSourcePosition() < first->getSourcePosition())
|
cerr << "spacing:" << DbU::getValueString(spacing) << " " << first << endl;
|
||||||
first = segment;
|
if (first == NULL) {
|
||||||
}
|
cerr << Error("null first, NOT correcting gap") << endl;
|
||||||
// cerr << "duSource:" << DbU::getValueString(first->getDuSource()) << endl;
|
} else {
|
||||||
first->setDuSource( first->getDuSource() - spacing - minSpacing/2 );
|
for ( AutoSegment* segment : first->getAligneds() ) {
|
||||||
|
if (segment->getSourcePosition() < first->getSourcePosition())
|
||||||
|
first = segment;
|
||||||
|
}
|
||||||
|
// cerr << "duSource:" << DbU::getValueString(first->getDuSource()) << endl;
|
||||||
|
first->setDuSource( first->getDuSource() - spacing - minSpacing/2 );
|
||||||
|
}
|
||||||
++gaps;
|
++gaps;
|
||||||
cerr << Warning( " Track::repair(): Closing same net gap in %s near:\n %s"
|
cerr << Warning( " Track::repair(): Closing same net gap in %s near:\n %s"
|
||||||
, getString(this).c_str()
|
, getString(this).c_str()
|
||||||
|
|
Loading…
Reference in New Issue