aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/TextBox.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index 0454f87..2a7000a 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -69,6 +69,7 @@ TextBox::~TextBox() {
69 69
70void TextBox::setText(const std::string &text) { 70void TextBox::setText(const std::string &text) {
71 m_text = text; 71 m_text = text;
72 m_start_pos = 0;
72 cursorEnd(); 73 cursorEnd();
73 adjustStartPos(); 74 adjustStartPos();
74} 75}