diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-05 20:24:50 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-06 12:53:11 +0200 |
commit | 35430d7dfbde684f32cbf9946c4ed6dfa0dc7589 (patch) | |
tree | bfea962c95eda3d89f33232429ed80f1c2f0ad7a /cppcanvas | |
parent | c904a29262920364dc6749dbded246f70153cf1b (diff) |
this SAL_INFO uses brush which might be NULL
Change-Id: Id69b55b266fe62934b53fc765030cfd044d0c74a
(cherry picked from commit 4a121d402f2a66d30cd01ed1b890284d8d4f465a)
Reviewed-on: https://gerrit.libreoffice.org/16777
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 701cfa3d7153..b8480b816c0c 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -1288,7 +1288,7 @@ namespace cppcanvas rState.isFillColorSet = true; // extract UseBrush EMFPBrush* brush = static_cast<EMFPBrush*>( aObjects [brushIndexOrColor & 0xff] ); - SAL_INFO("cppcanvas.emf", "EMF+\tbrush fill slot: " << brushIndexOrColor << " (type: " << brush->GetType () << ")"); + SAL_INFO("cppcanvas.emf", "EMF+\tbrush fill slot: " << brushIndexOrColor << " (type: " << (brush ? brush->GetType() : -1) << ")"); // give up in case something wrong happened if( !brush ) |