From ced53b3927eaa73465ae4743d50ebfd66a05ed23 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sat, 13 May 2017 08:14:43 +0800 Subject: [PATCH] fix bug that listbox wouldn't update when clicks on blank area --- source/gui/widgets/listbox.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index 1de525f9..b2939abe 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -4138,6 +4138,13 @@ namespace nana essence_->start_mouse_selection(arg.pos); lister.select_for_all(false); + update = true; + if (good_list_r) + { + drawer_lister_->draw(list_r); + if (good_head_r) + drawer_header_->draw(graph, head_r); + } } if(update)