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: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2013-12-13 17:27:31 +01:00
parent 50ed6fbb2b
commit 84e7504317

View File

@@ -233,7 +233,7 @@ void TimelineRenderer::drawBindingLoopMarkers(QPainter *p, int modelIndex, int f
int shadowoffset = 2; int shadowoffset = 2;
if ((yfrom + radius + shadowoffset < 0 && yto + radius + shadowoffset < 0) || if ((yfrom + radius + shadowoffset < 0 && yto + radius + shadowoffset < 0) ||
(yfrom - radius >= height() && yto - radius >= height())) (yfrom - radius >= height() && yto - radius >= height()))
return; break;
// shadow // shadow
p->setPen(shadowPen); p->setPen(shadowPen);