fix a textbox line-wrap issue that only clears first line

This commit is contained in:
Jinhao
2016-01-12 02:26:11 +08:00
parent 74690d1439
commit 13669f7591
2 changed files with 4 additions and 0 deletions

View File

@@ -407,6 +407,8 @@ namespace skeletons
{
std::deque<string_type>().swap(text_cont_);
attr_max_.reset();
text_cont_.emplace_back(); //text_cont_ must not be empty
_m_saved(std::string());
}