Date: Sat, 30 Apr 2016 04:39:51 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414329 - head/x11/fbdesk/files Message-ID: <201604300439.u3U4dpUp065769@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Sat Apr 30 04:39:51 2016 New Revision: 414329 URL: https://svnweb.freebsd.org/changeset/ports/414329 Log: x11/fbdesk: Fix build with libc++ 3.8.0 PR: 209108 Submitted by: dim Added: head/x11/fbdesk/files/patch-TextBox.cc (contents, props changed) Added: head/x11/fbdesk/files/patch-TextBox.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/fbdesk/files/patch-TextBox.cc Sat Apr 30 04:39:51 2016 (r414329) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604300439.u3U4dpUp065769>