From e16304c46fddfb73e4aef85333d881ba5350b58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Mon, 17 Jul 2017 14:52:28 +0200 Subject: [PATCH] Embedded obj: resize to avoid rendering issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Force resize, before sidebar wasn't rendered correctly. Change-Id: I0aeec50751a165bf4ab1aeefeda079ff97feb990 Reviewed-on: https://gerrit.libreoffice.org/40065 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- embeddedobj/source/general/docholder.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }