Commit 84e75043 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Make sure the painter state is restored at some point.



By returning early from the method painting the binding loop markers
painter states could be left on the stack, triggering error messages
later.

Change-Id: I0b9c336e44a28feec96c506d0e3d0da291054bbd
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 50ed6fbb
......@@ -233,7 +233,7 @@ void TimelineRenderer::drawBindingLoopMarkers(QPainter *p, int modelIndex, int f
int shadowoffset = 2;
if ((yfrom + radius + shadowoffset < 0 && yto + radius + shadowoffset < 0) ||
(yfrom - radius >= height() && yto - radius >= height()))
return;
break;
// shadow
p->setPen(shadowPen);
......
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