Kaydet (Commit) d7e72bef authored tarafından Eike Rathke's avatar Eike Rathke

certainly it is enough to obtain the disables dictionaries once?

Change-Id: I323719e9c74d7c117062fb225a890a5e65c042ab
üst c24aa1e4
...@@ -1050,6 +1050,8 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari ...@@ -1050,6 +1050,8 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari
sal_Int32 nLen = aElementNames.getLength(); sal_Int32 nLen = aElementNames.getLength();
const OUString *pElementNames = aElementNames.getConstArray(); const OUString *pElementNames = aElementNames.getConstArray();
const uno::Sequence< OUString > aDisabledDics( GetDisabledDictionaries() );
SvtLinguConfigDictionaryEntry aDicEntry; SvtLinguConfigDictionaryEntry aDicEntry;
for (sal_Int32 i = 0; i < nLen; ++i) for (sal_Int32 i = 0; i < nLen; ++i)
{ {
...@@ -1059,7 +1061,6 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari ...@@ -1059,7 +1061,6 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari
{ {
// check if it is active or not // check if it is active or not
bool bDicIsActive = true; bool bDicIsActive = true;
const uno::Sequence< OUString > aDisabledDics( GetDisabledDictionaries() );
for (sal_Int32 k = 0; bDicIsActive && k < aDisabledDics.getLength(); ++k) for (sal_Int32 k = 0; bDicIsActive && k < aDisabledDics.getLength(); ++k)
{ {
if (aDisabledDics[k] == pElementNames[i]) if (aDisabledDics[k] == pElementNames[i])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment