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

coverity#705854 Dereference before null check

Change-Id: I8bdedf38a29587bb504ccf310371dea756efd47d
üst d69b30a8
...@@ -693,7 +693,7 @@ void PPTWriter::ImplWriteParagraphs( SvStream& rOut, TextObj& rTextObj ) ...@@ -693,7 +693,7 @@ void PPTWriter::ImplWriteParagraphs( SvStream& rOut, TextObj& rTextObj )
} }
else else
{ {
if ( !pPara->mbFixedLineSpacing && pPortion && pPortion->mnCharHeight > (sal_uInt16)( ((double)-nLineSpacing) * 0.001 * 72.0 / 2.54 ) ) // 1/100mm to point if ( !pPara->mbFixedLineSpacing && pPortion->mnCharHeight > (sal_uInt16)( ((double)-nLineSpacing) * 0.001 * 72.0 / 2.54 ) ) // 1/100mm to point
nLineSpacing = nNormalSpacing; nLineSpacing = nNormalSpacing;
else else
nLineSpacing = (sal_Int16)( (double)nLineSpacing / 4.40972 ); nLineSpacing = (sal_Int16)( (double)nLineSpacing / 4.40972 );
......
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