diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-12 00:39:25 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-12 00:40:06 +0200 |
commit | d7e72bef24b911ae2c5639535869c970c994878b (patch) | |
tree | b08ddf042207e073643441cd9101ead0615e59f9 /unotools | |
parent | c24aa1e41cb58c206b4f702ef6737d9449b97e42 (diff) |
certainly it is enough to obtain the disables dictionaries once?
Change-Id: I323719e9c74d7c117062fb225a890a5e65c042ab
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 47bcadc36163..ebed68eadfa7 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -1050,6 +1050,8 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari sal_Int32 nLen = aElementNames.getLength(); const OUString *pElementNames = aElementNames.getConstArray(); + const uno::Sequence< OUString > aDisabledDics( GetDisabledDictionaries() ); + SvtLinguConfigDictionaryEntry aDicEntry; for (sal_Int32 i = 0; i < nLen; ++i) { @@ -1059,7 +1061,6 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari { // check if it is active or not bool bDicIsActive = true; - const uno::Sequence< OUString > aDisabledDics( GetDisabledDictionaries() ); for (sal_Int32 k = 0; bDicIsActive && k < aDisabledDics.getLength(); ++k) { if (aDisabledDics[k] == pElementNames[i]) |