summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/painting/qpen.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/painting/qpen.cpp b/src/gui/painting/qpen.cpp
index 1ddadf2..a57450d 100644
--- a/src/gui/painting/qpen.cpp
+++ b/src/gui/painting/qpen.cpp
@@ -845,9 +845,7 @@ bool QPen::operator==(const QPen &p) const
|| (qFuzzyCompare(pdd->dashOffset, dd->dashOffset) &&
pdd->dashPattern == dd->dashPattern))
&& p.d->brush == d->brush
- && pdd->cosmetic == dd->cosmetic)
- || ((p.d->style == Qt::NoPen || p.d->brush.style() == Qt::NoBrush)
- && (d->style == Qt::NoPen || d->brush.style() == Qt::NoBrush));
+ && pdd->cosmetic == dd->cosmetic);
}