Fix crash in mosaic layout.
This commit is contained in:
parent
868c494299
commit
4ef2d3b957
|
@ -251,13 +251,12 @@ int AbstractMosaicLayout::validateExistingRows(
|
||||||
auto untilRow = 0;
|
auto untilRow = 0;
|
||||||
auto untilCol = 0;
|
auto untilCol = 0;
|
||||||
while (until < count) {
|
while (until < count) {
|
||||||
auto &rowItems = _rows[untilRow].items;
|
|
||||||
if ((untilRow >= _rows.size())
|
if ((untilRow >= _rows.size())
|
||||||
|| checkItem(rowItems[untilCol], until)) {
|
|| checkItem(_rows[untilRow].items[untilCol], until)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
++until;
|
++until;
|
||||||
if (++untilCol == rowItems.size()) {
|
if (++untilCol == _rows[untilRow].items.size()) {
|
||||||
++untilRow;
|
++untilRow;
|
||||||
untilCol = 0;
|
untilCol = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue