diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-04-20 20:51:52 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-04-20 20:51:52 -0300 |
commit | 70752f3e4bee88bd525285fb1fef7149a636b1b2 (patch) | |
tree | 9f546f7b3ccaa2864353fc472f227ade85634cda /scene | |
parent | 1e52e0352f89ccc2d127e661d15a2d8fbd23237a (diff) |
-oops, duplicated text issue fix..
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/text_edit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 17f70a7015..c54333856e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2586,6 +2586,7 @@ Control::CursorShape TextEdit::get_cursor_shape(const Point2& p_pos) const { void TextEdit::set_text(String p_text){ setting_text=true; + clear(); _insert_text_at_cursor(p_text); clear_undo_history(); cursor.column=0; |