diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-14 10:33:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-14 11:37:24 +0200 |
commit | 8360079cac2e75b15bf9ec264aa61f8776d1c832 (patch) | |
tree | a3fa3ea1f1e23c564973d57ee0a7f580a228dc5b /Userland/Libraries | |
parent | 36a56871c04e77b088847cf9d51becfd8c032904 (diff) | |
download | serenity-8360079cac2e75b15bf9ec264aa61f8776d1c832.zip |
LibGUI: Fix logic typo in AbstractTableView::update_row_sizes()
We should skip over non-visible *rows*, not *columns*.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractTableView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractTableView.cpp b/Userland/Libraries/LibGUI/AbstractTableView.cpp index e4492b8e91..91454bad5c 100644 --- a/Userland/Libraries/LibGUI/AbstractTableView.cpp +++ b/Userland/Libraries/LibGUI/AbstractTableView.cpp @@ -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()); } |