Kaydet (Commit) 24921bf5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann Kaydeden (comit) Andras Timar

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

Change-Id: Ieecad5f244703c4d2436e22a3ab50f719843eef4
(cherry picked from commit 68c6408b)
Reviewed-on: https://gerrit.libreoffice.org/17672Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 5563bc7d
......@@ -429,13 +429,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