Kaydet (Commit) 68c6408b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

tdf#93382: Make HACK more targeted to avoid collateral damage

Change-Id: Ieecad5f244703c4d2436e22a3ab50f719843eef4
üst 2e23b6b9
......@@ -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
......
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