diff options
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index 318254eb1d73..7a3ce2447412 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -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(); |