evolution r36774 - branches/gnome-2-24/composer



Author: sragavan
Date: Wed Nov 12 06:22:17 2008
New Revision: 36774
URL: http://svn.gnome.org/viewvc/evolution?rev=36774&view=rev

Log:
2008-11-07  Srinivasa Ragavan  <sragavan novell com>

	** Fix for bug #559701

	* e-msg-composer.c: (e_load_spell_languages): Don't save when its
	NULL.


Modified:
   branches/gnome-2-24/composer/ChangeLog
   branches/gnome-2-24/composer/e-msg-composer.c

Modified: branches/gnome-2-24/composer/e-msg-composer.c
==============================================================================
--- branches/gnome-2-24/composer/e-msg-composer.c	(original)
+++ branches/gnome-2-24/composer/e-msg-composer.c	Wed Nov 12 06:22:17 2008
@@ -4808,14 +4808,16 @@
 		const GtkhtmlSpellLanguage *language;
 
 		language = gtkhtml_spell_language_lookup (NULL);
-
-		spell_languages = g_list_prepend (
-			spell_languages, (gpointer) language);
+		
+		if (language) {
+			spell_languages = g_list_prepend (
+				spell_languages, (gpointer) language);
 
 		/* Don't overwrite the stored spell check language
 		 * codes if there was a problem retrieving them. */
-		if (error == NULL)
-			e_save_spell_languages (spell_languages);
+			if (error == NULL)
+				e_save_spell_languages (spell_languages);
+		}
 	}
 
 	if (error != NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]