Commit 73942116 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Off-by-one when calculating row offsets



Change-Id: I255f3e15e0afc0761a6d3c9a32955d007cd3b637
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent df5e95f6
......@@ -145,7 +145,7 @@ int AbstractTimelineModel::rowOffset(int rowNumber) const
if (d->rowOffsets.size() >= rowNumber)
return d->rowOffsets[rowNumber - 1];
if (!d->rowOffsets.empty())
return d->rowOffsets.last() + (rowNumber - 1 - d->rowOffsets.size()) * DefaultRowHeight;
return d->rowOffsets.last() + (rowNumber - d->rowOffsets.size()) * DefaultRowHeight;
return rowNumber * DefaultRowHeight;
}
......
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