2008-09-16 [colin] 3.5.0cvs110
[claws.git] / src / prefs_spelling.c
index 6c8f9bb9c6a562edde39fcaf4ac6990e5c55c33a..b9de1cc720166d8feb421cb34cd4c766a7818da2 100644 (file)
@@ -238,6 +238,12 @@ static void prefs_spelling_create_widget(PrefsPage *_page, GtkWindow *window, gp
                g_free(prefs_common.alt_dictionary);
                prefs_common.alt_dictionary = tmp;
        }
+       if (strchr(prefs_common.dictionary, '-')) {
+               *(strchr(prefs_common.dictionary, '-')) = '\0';
+       }
+       if (strchr(prefs_common.alt_dictionary, '-')) {
+               *(strchr(prefs_common.alt_dictionary, '-')) = '\0';
+       }
        gtkaspell_set_dictionary_menu_active_item(GTK_COMBO_BOX(default_dict_combo),
                                                prefs_common.dictionary);