diff options
author | Eike Rathke <erack@redhat.com> | 2014-04-18 01:58:42 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-04-18 01:59:15 +0200 |
commit | d4ccbef95dd026a489d920d8a0929a84984b6250 (patch) | |
tree | fe9a1d772b3c2a22fd7f28c469321a9a5e5e14b1 | |
parent | ca5361ce25f595ceabe4305466f6b45c3907e86c (diff) |
why obtain the string in each iteration again
Change-Id: I78225a0b0b53178e6cb7d534d767f5984604e442
-rw-r--r-- | framework/source/uielement/langselectionmenucontroller.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uielement/langselectionmenucontroller.cxx b/framework/source/uielement/langselectionmenucontroller.cxx index 3c1cf94896be..8d1ced1d61d7 100644 --- a/framework/source/uielement/langselectionmenucontroller.cxx +++ b/framework/source/uielement/langselectionmenucontroller.cxx @@ -233,11 +233,12 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup sal_Int16 nItemId = 1; // in this control the item id is not important for executing the command const OUString sAsterisk("*"); // multiple languages in current selection const OUString sEmpty; // 'no language found' from language guessing + const OUString sNone( SvtLanguageTable::GetLanguageString( LANGUAGE_NONE )); std::set< OUString >::const_iterator it; for (it = aLangItems.begin(); it != aLangItems.end(); ++it) { const OUString & rStr( *it ); - if (rStr != SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ) && + if (rStr != sNone && rStr != sAsterisk && rStr != sEmpty) { |