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

coverity#982430 Division or modulo by zero

Change-Id: I9764d4e122c4dbab2349499f30c17842e432dadc
üst 058b5cac
......@@ -664,7 +664,7 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const OUSt
Bitmap aBmp( SvtResId( BMP_PLUGIN ) );
long nHeight = rRect.GetHeight() - pOut->GetTextHeight();
long nWidth = rRect.GetWidth();
if( nHeight > 0 && aBmp.GetSizePixel().Width() > 0 )
if(nHeight > 0 && nWidth > 0 && aBmp.GetSizePixel().Width() > 0)
{
aPt.Y() = nHeight;
Point aP = rRect.TopLeft();
......
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