[Libreoffice-commits] core.git: embeddedobj/source
Szymon Kłos
szymon.klos at collabora.com
Mon Jul 17 17:15:10 UTC 2017
embeddedobj/source/general/docholder.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit e16304c46fddfb73e4aef85333d881ba5350b58d
Author: Szymon Kłos <szymon.klos at collabora.com>
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 <ci at libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
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();
}
More information about the Libreoffice-commits
mailing list