[Libreoffice-commits] core.git: vcl/headless

Caolán McNamara caolanm at redhat.com
Wed Aug 27 01:44:48 PDT 2014


 vcl/headless/svpgdi.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f52b92f1c55657fd737c4d92010ca54e65c387d3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Aug 27 09:32:30 2014 +0100

    m_aDevice may be null
    
    Change-Id: I21f394c1a2f91a18af8eb46ed9be3c2f786fe1ef

diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 5f7c0c4..945f335 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,


More information about the Libreoffice-commits mailing list