[Libreoffice-commits] core.git: svx/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 18 19:52:10 UTC 2021
svx/source/svdraw/svdoole2.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 95f1e32a3300364a250b097b357345cfafe76d2a
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Aug 18 19:28:40 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed Aug 18 21:51:32 2021 +0200
GetObjRef already returns the needed reference
Change-Id: I9f18bcb56906ee75ec015bbd38de26dcb2828d06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120639
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index 750f458ad97a..77e65b30330f 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -1797,8 +1797,7 @@ uno::Reference < embed::XEmbeddedObject > const & SdrOle2Obj::GetObjRef_NoInit()
uno::Reference< frame::XModel > SdrOle2Obj::getXModel() const
{
- GetObjRef();
- if ( svt::EmbeddedObjectRef::TryRunningState(mpImpl->mxObjRef.GetObject()) )
+ if (svt::EmbeddedObjectRef::TryRunningState(GetObjRef()))
return uno::Reference< frame::XModel >( mpImpl->mxObjRef->getComponent(), uno::UNO_QUERY );
else
return uno::Reference< frame::XModel >();
More information about the Libreoffice-commits
mailing list