diff options
author | Ulf Hermann <[email protected]> | 2015-03-06 12:36:03 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2015-03-06 11:54:33 +0000 |
commit | 862f9a46e640e5a23a2dd478edca1f7863d3db14 (patch) | |
tree | 11c17866f8af1d6c61a7959683a7a1b2d995d9ff | |
parent | a7bf3c49a434fe3112a1434ec26b9474cb9a9532 (diff) |
Timeline: Add some forgotten braces
This broke window recalculation when the window was clamped
against the trace end.
Change-Id: I6c62e1440476ea9e36b08a2edd3e0c3bb2dec931
Task-number: QTCREATORBUG-14105
Reviewed-by: Joerg Bornemann <[email protected]>
-rw-r--r-- | src/libs/timeline/timelinezoomcontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/timeline/timelinezoomcontrol.cpp b/src/libs/timeline/timelinezoomcontrol.cpp index c31539af789..e8280172671 100644 --- a/src/libs/timeline/timelinezoomcontrol.cpp +++ b/src/libs/timeline/timelinezoomcontrol.cpp @@ -119,7 +119,7 @@ void TimelineZoomControl::rebuildWindow() m_windowEnd = m_rangeEnd + keep; if (m_windowEnd > m_traceEnd) { - m_windowStart = qMax(m_traceStart, m_windowStart - m_windowEnd - m_traceEnd); + m_windowStart = qMax(m_traceStart, m_windowStart - (m_windowEnd - m_traceEnd)); m_windowEnd = m_traceEnd; } } else { |