From 28652a0bf7ebae4228b86594721aec3a602ccf3d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Feb 2019 16:42:18 +0100 Subject: [PATCH] LibGUI: GTableView was accidentally obscuring the last row. --- LibGUI/GTableView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LibGUI/GTableView.cpp b/LibGUI/GTableView.cpp index 2300aef6ae..c01164e847 100644 --- a/LibGUI/GTableView.cpp +++ b/LibGUI/GTableView.cpp @@ -94,7 +94,6 @@ void GTableView::paint_event(GPaintEvent&) } painter.fill_rect(row_rect(painted_item_index), background_color); - int x_offset = 0; for (int column_index = 0; column_index < m_model->column_count(); ++column_index) { auto column_metadata = m_model->column_metadata(column_index); @@ -106,7 +105,7 @@ void GTableView::paint_event(GPaintEvent&) ++painted_item_index; }; - Rect unpainted_rect(0, painted_item_index * item_height(), width(), height()); + Rect unpainted_rect(0, header_height() + painted_item_index * item_height(), width(), height()); unpainted_rect.intersect(rect()); painter.fill_rect(unpainted_rect, Color::White);