mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 23:38:11 +00:00
LibGUI: Fix logic typo in AbstractTableView::update_row_sizes()
We should skip over non-visible *rows*, not *columns*.
This commit is contained in:
parent
36a56871c0
commit
8360079cac
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ void AbstractTableView::update_row_sizes()
|
||||||
int row_count = model.row_count();
|
int row_count = model.row_count();
|
||||||
|
|
||||||
for (int row = 0; row < row_count; ++row) {
|
for (int row = 0; row < row_count; ++row) {
|
||||||
if (!column_header().is_section_visible(row))
|
if (!row_header().is_section_visible(row))
|
||||||
continue;
|
continue;
|
||||||
row_header().set_section_size(row, row_height());
|
row_header().set_section_size(row, row_height());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue