summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-05-25 12:18:13 +0200
committerJan Holesovsky <kendy@suse.cz>2012-05-25 12:19:24 +0200
commit1bab1e998762bf4a11614b5b0bd074873b88424c (patch)
treef25a873f90067542fc20bc09e6445415a05ea300 /sw
parent3d199e410bda1ba148eed26176e1003df21eaa75 (diff)
language status bar control: Don't set radio buttons for some entries.
There are entries in the popup menu that are not supposed to be radio buttons, like More... ;-) Change-Id: Ic7986a668522901a244d35eda7e9cfbe0133f37e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/lingu/olmenu.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/ui/lingu/olmenu.cxx b/sw/source/ui/lingu/olmenu.cxx
index 1d53314bc524..171a797c17c2 100644
--- a/sw/source/ui/lingu/olmenu.cxx
+++ b/sw/source/ui/lingu/olmenu.cxx
@@ -314,8 +314,11 @@ void SwSpellPopup::fillLangPopupMenu(
}
pPopupMenu->InsertItem( nLangItemIdStart + MN_NONE_OFFSET, String(SW_RES( STR_LANGSTATUS_NONE )), MIB_RADIOCHECK );
- pPopupMenu->InsertItem( nLangItemIdStart + MN_RESET_OFFSET, String(SW_RES( STR_RESET_TO_DEFAULT_LANGUAGE )), MIB_RADIOCHECK );
- pPopupMenu->InsertItem( nLangItemIdStart + MN_MORE_OFFSET, String(SW_RES( STR_LANGSTATUS_MORE )), MIB_RADIOCHECK );
+ if ( aLanguageTable.GetString( LANGUAGE_NONE ) == aCurLang )
+ pPopupMenu->CheckItem( nLangItemIdStart + MN_NONE_OFFSET, sal_True );
+
+ pPopupMenu->InsertItem( nLangItemIdStart + MN_RESET_OFFSET, String(SW_RES( STR_RESET_TO_DEFAULT_LANGUAGE )), 0 );
+ pPopupMenu->InsertItem( nLangItemIdStart + MN_MORE_OFFSET, String(SW_RES( STR_LANGSTATUS_MORE )), 0 );
}