diff --git a/Libraries/LibGUI/GTableView.cpp b/Libraries/LibGUI/GTableView.cpp index d2f328ba3e8..e9d3060e4e4 100644 --- a/Libraries/LibGUI/GTableView.cpp +++ b/Libraries/LibGUI/GTableView.cpp @@ -9,6 +9,8 @@ #include #include +static const int minimum_column_width = 2; + GTableView::GTableView(GWidget* parent) : GAbstractView(parent) { @@ -217,6 +219,8 @@ void GTableView::mousemove_event(GMouseEvent& event) if (m_in_column_resize) { auto delta = event.position() - m_column_resize_origin; int new_width = m_column_resize_original_width + delta.x(); + if (new_width <= minimum_column_width) + new_width = minimum_column_width; ASSERT(m_resizing_column >= 0 && m_resizing_column < model()->column_count()); auto& column_data = this->column_data(m_resizing_column); if (column_data.width != new_width) {