diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-08-04 12:19:12 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-08-04 12:19:12 (GMT) |
commit | 69c379451f496071c51542dab876d41916b62889 (patch) | |
tree | 1422cab834acad5ef2aa7a393e998ffe8ade33e1 /src/gui | |
parent | 87432a42fba53ad910e8e21feb94e638f4ae17eb (diff) | |
download | Qt-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')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 2 |
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 |