- eDebug("draw into canvas... %d %d, %d %d", rect.left(), rect.top(), rect.width(), rect.height());
-#if 0
- ePtr<gDC> d = new gDC(m_pixmap);
- gPainter p(d, eRect());
+ if (!m_pixmap)
+ return;
+
+ ePtr<gDC> dc = new gDC(m_pixmap);
+
+ gPainter p(dc);
+ p.resetClip(eRect(ePoint(0,0), m_pixmap->size()));