diff options
-rw-r--r-- | vcl/qt5/Qt5SvpGraphics.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5SvpGraphics.cxx b/vcl/qt5/Qt5SvpGraphics.cxx index 55de70b2a186..364cbb183475 100644 --- a/vcl/qt5/Qt5SvpGraphics.cxx +++ b/vcl/qt5/Qt5SvpGraphics.cxx @@ -81,6 +81,8 @@ void Qt5SvpGraphics::handleDamage(const tools::Rectangle& rDamagedRegion) QImage* pImage = static_cast<Qt5Graphics_Controls*>(m_pWidgetDraw.get())->getImage(); assert(pImage); + if (pImage->width() == 0 || pImage->height() == 0) + return; BitmapBuffer aBuffer; QImage2BitmapBuffer(*pImage, aBuffer); |