Merge pull request #2474 from coolguy1842/develop
simple fix for resizing too small causing an index out of range crash
This commit is contained in:
commit
9560f9ed98
@ -66,6 +66,9 @@ void VisualGroup::update()
|
|||||||
rows[currentRow].height = maxRowHeight;
|
rows[currentRow].height = maxRowHeight;
|
||||||
rows[currentRow].top = offsetFromTop;
|
rows[currentRow].top = offsetFromTop;
|
||||||
currentRow++;
|
currentRow++;
|
||||||
|
if (currentRow >= rows.size()) {
|
||||||
|
currentRow = rows.size() - 1;
|
||||||
|
}
|
||||||
offsetFromTop += maxRowHeight + 5;
|
offsetFromTop += maxRowHeight + 5;
|
||||||
positionInRow = 0;
|
positionInRow = 0;
|
||||||
maxRowHeight = 0;
|
maxRowHeight = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user