diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-27 09:32:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-27 09:32:30 +0100 |
commit | f52b92f1c55657fd737c4d92010ca54e65c387d3 (patch) | |
tree | 8fd6646536f0d57e75e1717b60a5f4de648f8ab7 | |
parent | d6078b0843186542398905b97c78f29d974a5d30 (diff) |
m_aDevice may be null
Change-Id: I21f394c1a2f91a18af8eb46ed9be3c2f786fe1ef
-rw-r--r-- | vcl/headless/svpgdi.cxx | 3 |
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, |