diff options
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index cfdc2f5284e5..02be99c87cd6 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -303,12 +303,6 @@ void SpellDialog::Init_Impl() // initialize language ListBox aLanguageLB.SetLanguageList( LANG_LIST_SPELL_USED, sal_False, sal_False, sal_True ); - // get current language - UpdateBoxes_Impl(); - - // fill dictionary PopupMenu - InitUserDicts(); - aSentenceED.ClearModifyFlag(); SvxGetChangeAllList()->clear(); } @@ -429,6 +423,12 @@ IMPL_STATIC_LINK( SpellDialog, InitHdl, SpellDialog *, EMPTYARG ) pThis->aSentenceED.ResetUndo(); pThis->aUndoPB.Enable(sal_False); + // get current language + pThis->UpdateBoxes_Impl(); + + // fill dictionary PopupMenu + pThis->InitUserDicts(); + pThis->LockFocusChanges(true); if( pThis->aChangePB.IsEnabled() ) pThis->aChangePB.GrabFocus(); @@ -819,6 +819,10 @@ LanguageType SpellDialog::GetSelectedLang_Impl() const //------------------------------------------------- IMPL_LINK(SpellDialog, LanguageSelectHdl, SvxLanguageBox*, pBox) { + //If selected language changes, then add->list should be regenerated to + //match + InitUserDicts(); + //if currently an error is selected then search for alternatives for //this word and fill the alternatives ListBox accordingly String sError = aSentenceED.GetErrorText(); |