fix segfaulting when new text is smaller than the oldtext, m_start_pos has to be 0 before calculating anything else.
mathias mathias
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/FbTk/TextBox.cc
→
src/FbTk/TextBox.cc
@@ -69,6 +69,7 @@ }
void TextBox::setText(const std::string &text) { m_text = text; + m_start_pos = 0; cursorEnd(); adjustStartPos(); }