1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 06:35:06 +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:
Andreas Kling 2021-05-14 10:33:22 +02:00
parent 36a56871c0
commit 8360079cac

View file

@ -129,7 +129,7 @@ void AbstractTableView::update_row_sizes()
int row_count = model.row_count();
for (int row = 0; row < row_count; ++row) {
if (!column_header().is_section_visible(row))
if (!row_header().is_section_visible(row))
continue;
row_header().set_section_size(row, row_height());
}