diff options
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 11f557cd1d54..a8b32bd4727f 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -466,10 +466,13 @@ void SAL_CALL Thesaurus::initialize( const Sequence< Any >& rArguments ) return; sal_Int32 nLen = rArguments.getLength(); - if (1 == nLen) + // Accept one of two args so we can be compatible with the call site in GetAvailLocales() + // linguistic module + if (1 == nLen || 2 == nLen) { Reference< XLinguProperties > xPropSet; rArguments.getConstArray()[0] >>= xPropSet; + assert(xPropSet); //! Pointer allows for access of the non-UNO functions. //! And the reference to the UNO-functions while increasing |