Kaydet (Commit) 61101d99 authored tarafından Miklos Vajna's avatar Miklos Vajna

EmbeddedObjectRef: guard against div by zero

With this, if dc92bac5 fails, it won't
crash, just the assertion will fail.

Change-Id: I9830094088819cade7cf47d1f25d34bb6eb52ae6
üst dc92bac5
......@@ -658,7 +658,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 )
if( nHeight > 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