Embedded obj: resize to avoid rendering issue

Force resize, before sidebar wasn't rendered correctly.

Change-Id: I0aeec50751a165bf4ab1aeefeda079ff97feb990
Reviewed-on: https://gerrit.libreoffice.org/40065
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
Szymon Kłos 2017-07-17 14:52:28 +02:00
parent 53be53b35e
commit e16304c46f

View File

@ -868,7 +868,6 @@ uno::Reference< frame::XFrame > const & DocumentHolder::GetDocFrame()
// TODO/LATER: get it for the real aspect // TODO/LATER: get it for the real aspect
awt::Size aSize; awt::Size aSize;
GetExtent( embed::Aspects::MSOLE_CONTENT, &aSize );
LoadDocToFrame(false); LoadDocToFrame(false);
if ( xOwnLM.is() ) if ( xOwnLM.is() )
@ -877,6 +876,9 @@ uno::Reference< frame::XFrame > const & DocumentHolder::GetDocFrame()
xOwnLM->lock(); xOwnLM->lock();
} }
GetExtent(embed::Aspects::MSOLE_CONTENT, &aSize);
SetExtent(embed::Aspects::MSOLE_CONTENT, aSize);
if ( xOwnLM.is() ) if ( xOwnLM.is() )
xOwnLM->unlock(); xOwnLM->unlock();
} }