summaryrefslogtreecommitdiffstats
path: root/vcl/headless/SvpGraphicsBackend.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/headless/SvpGraphicsBackend.cxx')
-rw-r--r--vcl/headless/SvpGraphicsBackend.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/headless/SvpGraphicsBackend.cxx b/vcl/headless/SvpGraphicsBackend.cxx
index 209e2e880c83..3907f2dd05a0 100644
--- a/vcl/headless/SvpGraphicsBackend.cxx
+++ b/vcl/headless/SvpGraphicsBackend.cxx
@@ -635,6 +635,12 @@ bool SvpGraphicsBackend::drawAlphaBitmap(const SalTwoRect& rTR, const SalBitmap&
return false;
}
+ if (!rTR.mnSrcWidth || !rTR.mnSrcHeight)
+ {
+ SAL_WARN("vcl.gdi", "not possible to stretch nothing");
+ return true;
+ }
+
// MM02 try to access buffered BitmapHelper
std::shared_ptr<BitmapHelper> aSurface;
tryToUseSourceBuffer(rSourceBitmap, aSurface);