In Etesian::AddFeed, do nothing if no feed of a suitable width is found.

This commit is contained in:
Jean-Paul Chaput 2018-01-06 15:15:35 +01:00
parent 864b031b6a
commit 3e115eb056
1 changed files with 3 additions and 1 deletions

View File

@ -201,7 +201,9 @@ namespace {
// Feed is too big, try to find a smaller one.
int pitch = (int)((xmax-xtie) / getEtesian()->getVerticalPitch());
for ( ; pitch > 0 ; --pitch ) {
feed = getEtesian()->getFeedCells().getFeed( pitch );
feed = getEtesian()->getFeedCells().getFeed( pitch );
if (feed == NULL) continue;
feedWidth = feed->getAbutmentBox().getWidth();
if (feed != NULL) break;
}