Browse Source

LibGUI: Fix logic typo in AbstractTableView::update_row_sizes()

We should skip over non-visible *rows*, not *columns*.
Andreas Kling 4 years ago
parent
commit
8360079cac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibGUI/AbstractTableView.cpp

+ 1 - 1
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());
     }