Fix wxGTK assertion failure

Originally committed to SVN as r5895.
This commit is contained in:
Thomas Goyne 2011-11-19 05:07:41 +00:00
parent 563a544150
commit 7998677612

View file

@ -84,14 +84,14 @@ DialogSpellChecker::DialogSpellChecker(agi::Context *context)
// List of supported spellchecker languages
{
if (!spellchecker.get()) {
wxMessageBox("No spellchecker available.", "Error", wxICON_ERROR);
wxMessageBox("No spellchecker available.", "Error", wxICON_ERROR | wxOK);
Destroy();
return;
}
dictionary_lang_codes = spellchecker->GetLanguageList();
if (dictionary_lang_codes.empty()) {
wxMessageBox("No spellchecker dictionaries available.", "Error", wxICON_ERROR);
wxMessageBox("No spellchecker dictionaries available.", "Error", wxICON_ERROR | wxOK);
Destroy();
return;
}