diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-07-17 14:52:28 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-07-17 19:14:31 +0200 |
commit | e16304c46fddfb73e4aef85333d881ba5350b58d (patch) | |
tree | b3aa97a586771b86211badcf90579b08cce9446a /embeddedobj/source | |
parent | 53be53b35e18230004b5f173c961fb8aa7162b09 (diff) |
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>
Diffstat (limited to 'embeddedobj/source')
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |