From e5a935ab8372ac6f44d04b908e69e3b8613514dd Mon Sep 17 00:00:00 2001 From: Jinhao Date: Tue, 18 Jun 2019 08:23:54 +0800 Subject: [PATCH] fix bug that filebox single selection fails on Linux --- source/gui/filebox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/gui/filebox.cpp b/source/gui/filebox.cpp index b748b5cf..06dfed84 100644 --- a/source/gui/filebox.cpp +++ b/source/gui/filebox.cpp @@ -1062,6 +1062,8 @@ namespace nana { if(text.length() == start_pos) return files; + else if(0 == start_pos) //single selection + return {text}; return {}; }