[Libreoffice-commits] core.git: svx/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 18 15:44:43 UTC 2021
svx/source/svdraw/svdetc.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 9e1aee666fa48b768c829bbc707f47a98250df1e
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Aug 18 15:44:23 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed Aug 18 17:44:06 2021 +0200
Don't forget to break the loop early
Change-Id: I56f99b976fd27c558ff4e3089b2c0f85250602f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120636
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx
index 21dec8684feb..99003590e06b 100644
--- a/svx/source/svdraw/svdetc.cxx
+++ b/svx/source/svdraw/svdetc.cxx
@@ -142,7 +142,10 @@ IMPL_LINK_NOARG(OLEObjCache, UnloadCheckHdl, Timer*, void)
{
uno::Reference< frame::XModel > xParentModel = pCacheObj->GetParentXModel();
if ( xUnloadModel == xParentModel )
+ {
bUnload = false; // the object has running embedded objects
+ break;
+ }
}
}
}
More information about the Libreoffice-commits
mailing list