spinbox: if not editable keep prefix and suffix when gain focus

This commit is contained in:
besh81 2019-01-08 17:31:39 +01:00
parent 7d05edb47b
commit 4c3455648f

View File

@ -467,7 +467,7 @@ namespace nana
std::wstring text;
if (API::is_focus_ready(editor_->window_handle()))
if (API::is_focus_ready(editor_->window_handle()) && editor_->attr().editable)
text = to_wstring(range_->value());
else
text = to_wstring(modifier_.prefix + range_->value() + modifier_.suffix);