QPainter: Fix (!a == b) bug

The ! binds to a only, which is most likely wrong here.

Change-Id: I4aa09407a8acc68f97bef474781193774e4a7597
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
bb10
Tobias Hunger 2013-08-29 11:05:13 +02:00 committed by The Qt Project
parent a1133b215a
commit 0f8d8f4127
1 changed files with 2 additions and 2 deletions

View File

@ -780,8 +780,8 @@ void QPainterPrivate::updateEmulationSpecifier(QPainterState *s)
complexXform = !s->matrix.isAffine();
}
const bool brushXform = (!s->brush.transform().type() == QTransform::TxNone);
const bool penXform = (!s->pen.brush().transform().type() == QTransform::TxNone);
const bool brushXform = (s->brush.transform().type() != QTransform::TxNone);
const bool penXform = (s->pen.brush().transform().type() != QTransform::TxNone);
const bool patternXform = patternBrush && (xform || brushXform || penXform);