[Libreoffice-commits] core.git: scripting/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 20 08:13:02 UTC 2018
scripting/source/provider/MasterScriptProvider.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 09f80aded680fca07e6676f769b80491da12f0bb
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Dec 20 07:55:20 2018 +0100
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Dec 20 09:12:36 2018 +0100
Restore original behavior of MasterScriptProvider::hasByName
Commit f3ce30ec75a4d7116b9cd4d7b21d9aaa0e237eeb changed this to return
after first non-throwing XNameContainer::hasByName, regardless if it
returned true or false.
This changes it back, to iterate over all the providers again.
Change-Id: I74fa4d4aa8760cad509442226601ab4842312b80
Reviewed-on: https://gerrit.libreoffice.org/65471
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index 6854d6283dc0..4a66a15093da 100644
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -466,7 +466,8 @@ template <typename Proc> bool FindProviderAndApply(ProviderCache& rCache, Proc p
try
{
bResult = p(xCont);
- break;
+ if (bResult)
+ break;
}
catch (Exception& e)
{
More information about the Libreoffice-commits
mailing list