BGridLayout: fix reversal of parameters.

CID 1210907.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
Puck Meerburg
2015-06-23 12:01:35 -04:00
committed by Augustin Cavalier
parent d91933c26f
commit 50e2057db0
+1 -1
View File
@@ -425,7 +425,7 @@ BGridLayout::AddItem(BLayoutItem* item)
// find a free spot
for (int32 row = 0; row < fRowCount; row++) {
for (int32 column = 0; column < fColumnCount; column++) {
if (_IsGridCellEmpty(row, column))
if (_IsGridCellEmpty(column, row))
return AddItem(item, column, row, 1, 1);
}
}