summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-08-04 12:19:12 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-08-04 12:19:12 (GMT)
commit69c379451f496071c51542dab876d41916b62889 (patch)
tree1422cab834acad5ef2aa7a393e998ffe8ade33e1 /src/gui/painting/qpainter.cpp
parent87432a42fba53ad910e8e21feb94e638f4ae17eb (diff)
downloadQt-69c379451f496071c51542dab876d41916b62889.zip
Qt-69c379451f496071c51542dab876d41916b62889.tar.gz
Qt-69c379451f496071c51542dab876d41916b62889.tar.bz2
have QPainter::begin() return false on null paint engine
Reviewed-by: Samuel
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-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 9c7a7fa..8192fb7 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -1672,7 +1672,7 @@ bool QPainter::begin(QPaintDevice *pd)
if (!d->engine) {
qWarning("QPainter::begin: Paint device returned engine == 0, type: %d", pd->devType());
- return true;
+ return false;
}
// Slip a painter state into the engine before we do any other operations