1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00
freebsd-ports/x11/fbdesk/files/patch-TextBox.cc
Kurt Jaeger 4692fbbe55 x11/fbdesk: Fix build with libc++ 3.8.0
PR:		209108
Submitted by:	dim
2016-04-30 04:39:51 +00:00

12 lines
512 B
C++

--- src/FbTk/TextBox.cc.orig 2006-03-25 15:42:00 UTC
+++ src/FbTk/TextBox.cc
@@ -199,7 +199,7 @@ void TextBox::buttonPressEvent(XButtonEv
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((int)(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos)));
if (tmp < delta) {
delta = tmp;