From 70752f3e4bee88bd525285fb1fef7149a636b1b2 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 20 Apr 2015 20:51:52 -0300 Subject: -oops, duplicated text issue fix.. --- scene/gui/text_edit.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene') 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; -- cgit v1.2.3