summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-07-24 08:00:21 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-07-24 08:38:59 (GMT)
commit5f9454326cf3768bdc973832de76daa49f5f6830 (patch)
tree8359515fe11b00792eadac29c94af9417b9c24e3 /src/gui
parentb4f2e138422076ed5d615181fc336dbb90279935 (diff)
downloadQt-5f9454326cf3768bdc973832de76daa49f5f6830.zip
Qt-5f9454326cf3768bdc973832de76daa49f5f6830.tar.gz
Qt-5f9454326cf3768bdc973832de76daa49f5f6830.tar.bz2
Once enabled, the emulation engine never got switched back off
The check in QPainter::checkEmulation was just plain wrong. Reviewed-By: Eskil
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qpainter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index 34305c2..0460071 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -184,7 +184,7 @@ void QPainterPrivate::checkEmulation()
extended = emulationEngine;
extended->setState(state);
}
- } else if (emulationEngine && emulationEngine != extended) {
+ } else if (emulationEngine == extended) {
extended = emulationEngine->real_engine;
}
}