From b7a08744287270a1b0fb88152a4a6b7234b4d289 Mon Sep 17 00:00:00 2001 From: ErrorFlynn Date: Tue, 20 Aug 2019 05:32:36 -0400 Subject: [PATCH] fixed bug: listbox::sort_col doesn't update view Calling listbox::sort_col to change the sort column doesn't update the viewport to reflect the change, forcing the user to call API::refresh_window or otherwise perform stupid tricks to force the listbox to refresh. --- source/gui/widgets/listbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index 2a984cf5..a62a80f8 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -5949,6 +5949,7 @@ namespace nana { internal_scope_guard lock; _m_ess().lister.sort_column(col, &reverse); + _m_ess().update(); } auto listbox::sort_col() const -> size_type