summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5SvpGraphics.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qt5/Qt5SvpGraphics.cxx')
-rw-r--r--vcl/qt5/Qt5SvpGraphics.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5SvpGraphics.cxx b/vcl/qt5/Qt5SvpGraphics.cxx
index fc58bbcfcc15..ec91049f1732 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);