summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_view.cc
diff options
context:
space:
mode:
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();