diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-25 22:13:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-26 10:23:55 +0100 |
commit | c9e6df76fffe84da7529d92cba7bb79e36d9cd15 (patch) | |
tree | c21a7a0b04323ad2d44f4ad3e866fa08d0e20df2 /cui | |
parent | In-line comment. (diff) | |
download | core-c9e6df76fffe84da7529d92cba7bb79e36d9cd15.tar.gz core-c9e6df76fffe84da7529d92cba7bb79e36d9cd15.zip |
Resolves: fdo#36678 move init that depends on parent to post-parent avail
Diffstat (limited to 'cui')
-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(); |