2009-03-15 [colin] 3.7.1cvs13
[claws.git] / src / gtk / gtkaspell.c
index f038705452b5d155a7d00374f2c3377a223f02a3..6957550f07f20032a2ced990061404c2d99c1738 100644 (file)
@@ -750,12 +750,12 @@ static GList *misspelled_suggest(GtkAspell *gtkaspell, gchar *word)
        gtkaspell_free_suggestions_list(gtkaspell);
 
        suggestions = enchant_dict_suggest(gtkaspell->gtkaspeller->speller, word, strlen(word), &num_sug);
+       list = g_list_append(list, g_strdup(word)); 
        if (suggestions == NULL || num_sug == 0) {
-               gtkaspell->max_sug          = - 1;
-               gtkaspell->suggestions_list = NULL;
-               return NULL;
+               gtkaspell->max_sug          = -1;
+               gtkaspell->suggestions_list = list;
+               return list;
        }
-       list = g_list_append(list, g_strdup(word)); 
        for (i = 0; i < num_sug; i++)
                list = g_list_append(list, g_strdup((gchar *)suggestions[i]));