fix broken text selection for FbTk::TextBox

uninitialized variables cause all kind of problems.
This commit is contained in:
Mathias Gumz 2016-05-28 16:52:28 +02:00
parent 98313bfb91
commit a9e17d4091

View file

@ -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);
}