diff options
-rw-r--r-- | svx/source/unodraw/unoshap4.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx index a6ad98ae6743..e087d61e475d 100644 --- a/svx/source/unodraw/unoshap4.cxx +++ b/svx/source/unodraw/unoshap4.cxx @@ -428,13 +428,17 @@ bool SvxOle2Shape::createObject( const SvGlobalName &aClassName ) {} pOle2Obj->SetLogicRect( aRect ); } - else if (!aRect.IsEmpty()) //HACK: can aRect legally be empty? + else { awt::Size aSz; Size aSize = aRect.GetSize(); aSz.Width = aSize.Width(); aSz.Height = aSize.Height(); - xObj->setVisualAreaSize( pOle2Obj->GetAspect(), aSz ); + if (aSz.Width != 0 || aSz.Height != 0) + { + //HACK: can aSz legally be empty? + xObj->setVisualAreaSize( pOle2Obj->GetAspect(), aSz ); + } } // connect the object after the visual area is set |