Small optimization in ThumbBrowserBase::arrangeFiles()

This commit is contained in:
heckflosse
2017-07-07 21:31:05 +02:00
parent 30ef9092c4
commit 57adea62cc

View File

@@ -575,6 +575,9 @@ void ThumbBrowserBase::arrangeFiles()
if (!fd[i]->filtered && colsWidth + fd[i]->getMinimalWidth() <= availWidth) {
colsWidth += fd[numOfCols]->getMinimalWidth();
++numOfCols;
if(colsWidth > availWidth) {
break;
}
}
}