Restore original behavior of MasterScriptProvider::hasByName

Commit f3ce30ec75 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@collabora.com>
This commit is contained in:
Mike Kaganski
2018-12-20 07:55:20 +01:00
parent ae270343e2
commit 09f80aded6

View File

@@ -466,7 +466,8 @@ template <typename Proc> bool FindProviderAndApply(ProviderCache& rCache, Proc p
try try
{ {
bResult = p(xCont); bResult = p(xCont);
break; if (bResult)
break;
} }
catch (Exception& e) catch (Exception& e)
{ {