fix crash when drawing in text_changed event with new line inserted(#332)

This commit is contained in:
Jinhao
2018-08-26 16:42:53 +08:00
parent e8e7ad543c
commit e1992fb0d4
4 changed files with 101 additions and 63 deletions

View File

@@ -428,7 +428,7 @@ namespace drawerbase {
if(at_caret == false)
editor->move_caret_end(false);
editor->put(to_wstring(text));
editor->put(to_wstring(text), true);
editor->try_refresh();
API::update_window(this->handle());
@@ -445,7 +445,7 @@ namespace drawerbase {
if(at_caret == false)
editor->move_caret_end(false);
editor->put(text);
editor->put(text, true);
editor->try_refresh();
API::update_window(this->handle());