summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-27 09:32:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-27 09:32:30 +0100
commitf52b92f1c55657fd737c4d92010ca54e65c387d3 (patch)
tree8fd6646536f0d57e75e1717b60a5f4de648f8ab7
parentd6078b0843186542398905b97c78f29d974a5d30 (diff)
m_aDevice may be null
Change-Id: I21f394c1a2f91a18af8eb46ed9be3c2f786fe1ef
-rw-r--r--vcl/headless/svpgdi.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 5f7c0c4a8241..945f335bccea 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -584,6 +584,9 @@ void SvpSalGraphics::copyBits( const SalTwoRect& rPosAry,
void SvpSalGraphics::drawBitmap( const SalTwoRect& rPosAry,
const SalBitmap& rSalBitmap )
{
+ if( !m_aDevice.get() )
+ return;
+
const SvpSalBitmap& rSrc = static_cast<const SvpSalBitmap&>(rSalBitmap);
basegfx::B2IBox aSrcRect( rPosAry.mnSrcX, rPosAry.mnSrcY,
rPosAry.mnSrcX+rPosAry.mnSrcWidth,