Do not scroll in QXcbWindowSurface when m_image is not yet created.

Reviewed-by: Samuel Rødal
bb10
Laszlo Agocs 2011-05-30 14:58:55 +02:00
parent 3a1f80ac92
commit 80d69dc984
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ extern void qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &o
bool QXcbWindowSurface::scroll(const QRegion &area, int dx, int dy)
{
if (m_image->image()->isNull())
if (!m_image || m_image->image()->isNull())
return false;
m_image->preparePaint(area);