In Etesian::AddFeed, do nothing if no feed of a suitable width is found.
This commit is contained in:
parent
864b031b6a
commit
3e115eb056
|
@ -201,7 +201,9 @@ namespace {
|
||||||
// Feed is too big, try to find a smaller one.
|
// Feed is too big, try to find a smaller one.
|
||||||
int pitch = (int)((xmax-xtie) / getEtesian()->getVerticalPitch());
|
int pitch = (int)((xmax-xtie) / getEtesian()->getVerticalPitch());
|
||||||
for ( ; pitch > 0 ; --pitch ) {
|
for ( ; pitch > 0 ; --pitch ) {
|
||||||
feed = getEtesian()->getFeedCells().getFeed( pitch );
|
feed = getEtesian()->getFeedCells().getFeed( pitch );
|
||||||
|
if (feed == NULL) continue;
|
||||||
|
|
||||||
feedWidth = feed->getAbutmentBox().getWidth();
|
feedWidth = feed->getAbutmentBox().getWidth();
|
||||||
if (feed != NULL) break;
|
if (feed != NULL) break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue