summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-10-27 08:08:12 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-27 08:08:12 (GMT)
commitcdd341bd8ca9834cd631188c5efc440038ad0b20 (patch)
treea787bf8407d16cfb1c25cae0f58439255505f442 /src/gui
parent44e9d5264217782762432bb0f4b7c441b4a545cd (diff)
downloadQt-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.cpp3
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();