BGridLayout: fix reversal of parameters.
CID 1210907. Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
committed by
Augustin Cavalier
parent
d91933c26f
commit
50e2057db0
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user