embeddedobj/source/general/docholder.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit e16304c46fddfb73e4aef85333d881ba5350b58d Author: Szymon KÅos <[email protected]> Date: Mon Jul 17 14:52:28 2017 +0200 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 <[email protected]> Reviewed-by: Szymon KÅos <[email protected]> diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index affd65fc1231..13fb5335d4d1 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -868,7 +868,6 @@ uno::Reference< frame::XFrame > const & DocumentHolder::GetDocFrame() // TODO/LATER: get it for the real aspect awt::Size aSize; - GetExtent( embed::Aspects::MSOLE_CONTENT, &aSize ); LoadDocToFrame(false); if ( xOwnLM.is() ) @@ -877,6 +876,9 @@ uno::Reference< frame::XFrame > const & DocumentHolder::GetDocFrame() xOwnLM->lock(); } + GetExtent(embed::Aspects::MSOLE_CONTENT, &aSize); + SetExtent(embed::Aspects::MSOLE_CONTENT, aSize); + if ( xOwnLM.is() ) xOwnLM->unlock(); }
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
