aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2016-05-28 14:52:28 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-05-28 14:52:28 (GMT)
commita9e17d409164b8141bc4c4cde5af767ce7ac894e (patch)
treedf424050bf93284d9a1ac80860a3dc65d536ed2b /src
parent98313bfb91e45a3f95a74e84ea4cbc7ec7f8a66f (diff)
downloadfluxbox-a9e17d409164b8141bc4c4cde5af767ce7ac894e.zip
fluxbox-a9e17d409164b8141bc4c4cde5af767ce7ac894e.tar.bz2
fix broken text selection for FbTk::TextBox
uninitialized variables cause all kind of problems.
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/TextBox.cc3
1 files changed, 2 insertions, 1 deletions
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,
67 m_gc(0), 67 m_gc(0),
68 m_cursor_pos(0), 68 m_cursor_pos(0),
69 m_start_pos(0), 69 m_start_pos(0),
70 m_end_pos(0) { 70 m_end_pos(0),
71 m_select_pos(-1) {
71 72
72 FbTk::EventManager::instance()->add(*this, *this); 73 FbTk::EventManager::instance()->add(*this, *this);
73} 74}