View | Details | Raw Unified | Return to bug 209108
Collapse All | Expand All

(-)x11/fbdesk/files/patch-TextBox.cc (+11 lines)
Line 0 Link Here
1
--- src/FbTk/TextBox.cc.orig	2006-03-25 15:42:00 UTC
2
+++ src/FbTk/TextBox.cc
3
@@ -199,7 +199,7 @@ void TextBox::buttonPressEvent(XButtonEv
4
         int delta = width();
5
         int tmp = 0;
6
         for(i = m_start_pos; i <= m_end_pos; i++) {
7
-            tmp = abs(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos));
8
+            tmp = abs((int)(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos)));
9
 
10
             if (tmp < delta) {
11
                 delta = tmp;

Return to bug 209108