From c7d4438d91929d6d22096abee708347bcaafa552 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 18 Oct 2007 17:37:46 +0000 Subject: fixed bug #1809786 --- ChangeLog | 4 ++++ src/FbTk/TextBox.cc | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c2f0a0..bc4420b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ (Format: Year/Month/Day) Changes for 1.0.1: +*07/10/18: + * Fixed gcc 2.96 compile problem ( Thanks rumpole at hotmail ) + bug #1809786 + src/FbTk/TextBox.cc *07/10/15: * Added OnWindow modifier to keys file (Mark) Keys.cc Window.cc Screen.cc CurrentWindowCmd.cc diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index fa1600e..1c345c9 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc @@ -203,7 +203,10 @@ void TextBox::buttonPressEvent(XButtonEvent &event) { int delta = width(); int tmp = 0; for(i = m_start_pos; i <= m_end_pos; i++) { - tmp = abs(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos)); + tmp = abs(static_cast + (event.x - font(). + textWidth(m_text.c_str() + m_start_pos, + i - m_start_pos))); if (tmp < delta) { delta = tmp; -- cgit v0.11.2