diff options
Diffstat (limited to 'i18npool/source/breakiterator/breakiterator_unicode.cxx')
-rw-r--r-- | i18npool/source/breakiterator/breakiterator_unicode.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index cf781eb414a0..5331b8366e4d 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -179,12 +179,11 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const css::lang::Local throw uno::RuntimeException(); } } - if (icuBI->aBreakIterator) { - icuBI->maLocale=rLocale; - bNewBreak=true; - } else { + if (!icuBI->aBreakIterator) { throw uno::RuntimeException(); } + icuBI->maLocale=rLocale; + bNewBreak=true; } if (bNewBreak || icuBI->aICUText.pData != rText.pData) |