From a9e17d409164b8141bc4c4cde5af767ce7ac894e Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 28 May 2016 16:52:28 +0200 Subject: fix broken text selection for FbTk::TextBox uninitialized variables cause all kind of problems. --- src/FbTk/TextBox.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index 43b8573..838a069 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc @@ -67,7 +67,8 @@ TextBox::TextBox(const FbWindow &parent, m_gc(0), m_cursor_pos(0), m_start_pos(0), - m_end_pos(0) { + m_end_pos(0), + m_select_pos(-1) { FbTk::EventManager::instance()->add(*this, *this); } -- cgit v0.11.2