From 5f9454326cf3768bdc973832de76daa49f5f6830 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 24 Jul 2009 10:00:21 +0200 Subject: Once enabled, the emulation engine never got switched back off The check in QPainter::checkEmulation was just plain wrong. Reviewed-By: Eskil --- src/gui/painting/qpainter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v0.12