summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-14 10:33:22 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-14 11:37:24 +0200
commit8360079cac2e75b15bf9ec264aa61f8776d1c832 (patch)
treea3fa3ea1f1e23c564973d57ee0a7f580a228dc5b /Userland/Libraries
parent36a56871c04e77b088847cf9d51becfd8c032904 (diff)
downloadserenity-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.cpp2
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());
}