Kaydet (Commit) 19100e5e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704112 Unchecked return value

Change-Id: Ic1147662012426126c1cfcf7cb496a3d03cab794
üst 29e353bd
......@@ -3865,16 +3865,18 @@ void SdXMLCustomShapeContext::EndElement()
OSL_FAIL( "could not set enhanced customshape geometry" );
}
sal_Int32 nUPD( 0 );
sal_Int32 nBuild( 0 );
GetImport().getBuildIds( nUPD, nBuild );
if( ((nUPD >= 640 && nUPD <= 645) || (nUPD == 680)) && (nBuild <= 9221) )
sal_Int32 nUPD;
sal_Int32 nBuild;
if (GetImport().getBuildIds(nUPD, nBuild))
{
Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( mxShape, UNO_QUERY );
if( xDefaulter.is() )
if( ((nUPD >= 640 && nUPD <= 645) || (nUPD == 680)) && (nBuild <= 9221) )
{
OUString aEmptyType;
xDefaulter->createCustomShapeDefaults( aEmptyType );
Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( mxShape, UNO_QUERY );
if( xDefaulter.is() )
{
OUString aEmptyType;
xDefaulter->createCustomShapeDefaults( aEmptyType );
}
}
}
}
......
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