Kaydet (Commit) 4a121d40 authored tarafından Caolán McNamara's avatar Caolán McNamara

this SAL_INFO uses brush which might be NULL

Change-Id: Id69b55b266fe62934b53fc765030cfd044d0c74a
üst d6db7e20
...@@ -1288,7 +1288,7 @@ namespace cppcanvas ...@@ -1288,7 +1288,7 @@ namespace cppcanvas
rState.isFillColorSet = true; rState.isFillColorSet = true;
// extract UseBrush // extract UseBrush
EMFPBrush* brush = static_cast<EMFPBrush*>( aObjects [brushIndexOrColor & 0xff] ); 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 // give up in case something wrong happened
if( !brush ) if( !brush )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment