QmlProfiler: fix crash in timeline when repaint too slow

Change-Id: I94e7dfd90759f4021e35fb9590e414b0ab3de01d
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Christiaan Janssen
2011-11-09 17:35:12 +01:00
parent c4694275fb
commit 92fcf1e169

View File

@@ -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;