summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdf.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-22 15:37:19 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-22 15:37:19 (GMT)
commitd63f3c4c3940b4293c8763d5bfc01ed430075efb (patch)
treeab648417305e42ffb65f86d272ffccb023a152f1 /src/gui/painting/qpdf.cpp
parent3597a5b82610752cf95372a5a5f7b33afc8d30b9 (diff)
parent7a208874ae5d69d2b70b08f03675ef8f0c843a7f (diff)
downloadQt-d63f3c4c3940b4293c8763d5bfc01ed430075efb.zip
Qt-d63f3c4c3940b4293c8763d5bfc01ed430075efb.tar.gz
Qt-d63f3c4c3940b4293c8763d5bfc01ed430075efb.tar.bz2
Merge branch '4.5'
Diffstat (limited to 'src/gui/painting/qpdf.cpp')
-rw-r--r--src/gui/painting/qpdf.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp
index 178d519..6735ee6 100644
--- a/src/gui/painting/qpdf.cpp
+++ b/src/gui/painting/qpdf.cpp
@@ -968,8 +968,7 @@ QPdfBaseEngine::QPdfBaseEngine(QPdfBaseEnginePrivate &dd, PaintEngineFeatures f)
void QPdfBaseEngine::drawPoints (const QPointF *points, int pointCount)
{
- Q_D(QPdfBaseEngine);
- if (!points || !d->hasPen)
+ if (!points)
return;
QPainterPath p;
@@ -999,6 +998,12 @@ void QPdfBaseEngine::drawRects (const QRectF *rects, int rectCount)
return;
Q_D(QPdfBaseEngine);
+ if (d->useAlphaEngine) {
+ QAlphaPaintEngine::drawRects(rects, rectCount);
+ if (!continueCall())
+ return;
+ }
+
if (d->clipEnabled && d->allClipped)
return;
if (!d->hasPen && !d->hasBrush)