Commit 92fcf1e1 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: fix crash in timeline when repaint too slow



Change-Id: I94e7dfd90759f4021e35fb9590e414b0ab3de01d
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent c4694275
......@@ -244,7 +244,7 @@ void TimelineView::manageClicked()
void TimelineView::manageHovered(int x, int y)
{
if (m_endTime - m_startTime <=0)
if (m_endTime - m_startTime <=0 || m_lastEndTime - m_lastStartTime <= 0)
return;
qint64 time = x * (m_endTime - m_startTime) / width() + m_startTime;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment