commit a5ac0ff03aca78304b05f047b2983b38cd6de6ed
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Wed Feb 22 19:20:18 2017 +0000
second thoughts on the build fix
gcc7.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gcc7.patch b/gcc7.patch
index f751912..cecf1da 100644
--- a/gcc7.patch
+++ b/gcc7.patch
@@ -5,7 +5,7 @@
// Hide text if it would overlap with the text drawn at the mouse
position
- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs(x-(leftDist + mouseX + 20)) < (int) minDistX + 16
-+ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& (x-(leftDist + mouseX + 20)) < (int) minDistX + 16
++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs((int)(x-(leftDist + mouseX + 20))) < (int) minDistX + 16
&& mouseX < m_innerScopeRect.width() &&
mouseX >= 0;
if (x <= rightBorder) {
@@ -14,7 +14,7 @@
// Draw the line at the very right (maximum frequency)
x = leftDist + m_innerScopeRect.width()-1;
- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs(x-(leftDist + mouseX + 30)) < (int) minDistX
-+ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& (x-(leftDist + mouseX + 30)) < (int) minDistX
++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs((int)(x-(leftDist + mouseX + 30))) < (int) minDistX
&& mouseX < m_innerScopeRect.width() && mouseX
>= 0;
davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height()+6);
if (!hideText) {