diff options
Diffstat (limited to 'Libraries/LibGUI/HeaderView.cpp')
-rw-r--r-- | Libraries/LibGUI/HeaderView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/HeaderView.cpp b/Libraries/LibGUI/HeaderView.cpp index a9ddca5581..c264b0661b 100644 --- a/Libraries/LibGUI/HeaderView.cpp +++ b/Libraries/LibGUI/HeaderView.cpp @@ -202,7 +202,7 @@ void HeaderView::mouseup_event(MouseEvent& event) return; } if (m_pressed_section != -1) { - if (section_rect(m_pressed_section).contains(event.position())) { + if (m_orientation == Gfx::Orientation::Horizontal && section_rect(m_pressed_section).contains(event.position())) { auto new_sort_order = SortOrder::Ascending; if (m_table_view.key_column() == m_pressed_section) new_sort_order = m_table_view.sort_order() == SortOrder::Ascending |