summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_view.cc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2014-08-27 22:41:02 +0900
committerMichele Calgaro <[email protected]>2014-08-27 22:41:02 +0900
commit5d6fa0caf6ef37c348404275ce7ec35454c87bd3 (patch)
tree4533c1735f06c9a43104ec65a8e49f53b1d40f09 /chalk/ui/kis_view.cc
parentebea843b5c693eaef2f601d3739242ed6b8db02c (diff)
downloadkoffice-5d6fa0caf6ef37c348404275ce7ec35454c87bd3.tar.gz
koffice-5d6fa0caf6ef37c348404275ce7ec35454c87bd3.zip
Fixed warning messages when starting Chalk. This resolves bug 1976.
Diffstat (limited to 'chalk/ui/kis_view.cc')
-rw-r--r--chalk/ui/kis_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chalk/ui/kis_view.cc b/chalk/ui/kis_view.cc
index 79575357..569188d9 100644
--- a/chalk/ui/kis_view.cc
+++ b/chalk/ui/kis_view.cc
@@ -945,7 +945,7 @@ void KisView::updateTQPaintDeviceCanvas(const TQRect& imageRect)
TQPainter gc;
- if (gc.begin(&m_canvasPixmap)) {
+ if (!m_canvasPixmap.isNull() && gc.begin(&m_canvasPixmap)) {
KisImageSP img = currentImg();