diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2016-04-30 04:39:51 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2016-04-30 04:39:51 +0000 |
commit | 4692fbbe556d433743f53ee88ebeb07831d894e8 (patch) | |
tree | c5a03ff204e191e4baf3186ec0d3558c5c930253 /x11 | |
parent | databases/postgresql-plv8js: Fix build with libc++ 3.8.0 (diff) |
x11/fbdesk: Fix build with libc++ 3.8.0
PR: 209108
Submitted by: dim
Notes
Notes:
svn path=/head/; revision=414329
Diffstat (limited to 'x11')
-rw-r--r-- | x11/fbdesk/files/patch-TextBox.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/x11/fbdesk/files/patch-TextBox.cc b/x11/fbdesk/files/patch-TextBox.cc new file mode 100644 index 000000000000..8f6fe7ef616d --- /dev/null +++ b/x11/fbdesk/files/patch-TextBox.cc @@ -0,0 +1,11 @@ +--- 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; |