diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-27 08:08:12 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-27 08:08:12 (GMT) |
commit | cdd341bd8ca9834cd631188c5efc440038ad0b20 (patch) | |
tree | a787bf8407d16cfb1c25cae0f58439255505f442 /src/gui | |
parent | 44e9d5264217782762432bb0f4b7c441b4a545cd (diff) | |
download | Qt-cdd341bd8ca9834cd631188c5efc440038ad0b20.zip Qt-cdd341bd8ca9834cd631188c5efc440038ad0b20.tar.gz Qt-cdd341bd8ca9834cd631188c5efc440038ad0b20.tar.bz2 |
Removed a redundant if() check. Its checked in the containing condition
Reviewed-by: Samuel
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qpaintengine_raster.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index fd0e810..bf2c574 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -1739,8 +1739,7 @@ void QRasterPaintEngine::stroke(const QVectorPath &path, const QPen &pen) const QLineF *lines = reinterpret_cast<const QLineF *>(path.points()); for (int i = 0; i < lineCount; ++i) { - if (path.shape() == QVectorPath::LinesHint) - dashOffset = s->lastPen.dashOffset(); + dashOffset = s->lastPen.dashOffset(); if (lines[i].p1() == lines[i].p2()) { if (s->lastPen.capStyle() != Qt::FlatCap) { QPointF p = lines[i].p1(); |