CVS: sylpheedclaws/sylpheed-claws/src/gtk gtkaspell.c,1.9.2.48,1.9.2.49

[email protected] Thu, 28 Dec 2006 18:19:53 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/gtk
In directory sunsite.dk:/tmp/cvs-serv13973/src/gtk

Modified Files:
      Tag: gtk2
	gtkaspell.c 
Log Message:
2006-12-28 [colin]	2.6.1cvs87

	* src/gtk/gtkaspell.c
		Don't assert if use_alternate is true
		and alt_dictionary isn't set -- this 
		is what happens on upgrade! Rather,
		do with it.

Index: gtkaspell.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/gtk/gtkaspell.c,v
retrieving revision 1.9.2.48
retrieving revision 1.9.2.49
diff -u -d -r1.9.2.48 -r1.9.2.49
--- gtkaspell.c	2006/12/27 11:19:38	1.9.2.48
+++ gtkaspell.c	2006/12/28 18:19:48	1.9.2.49
@@ -396,10 +396,7 @@
 	g_return_val_if_fail(gtktext, NULL);
 	g_return_val_if_fail(dictionary && strlen(dictionary) > 0, 
 			NULL);
-	if (use_alternate) {
-		g_return_val_if_fail(alt_dictionary && strlen(alt_dictionary) > 0, 
-				NULL);
-	}
+
 	g_return_val_if_fail(dictionary_path && strlen(dictionary_path) > 0, 
 			NULL);
 
@@ -421,7 +418,7 @@
 
 	gtkaspell->gtkaspeller	      = gtkaspeller;
 
-	if (use_alternate) {
+	if (use_alternate && alt_dictionary && *alt_dictionary) {
 		Dictionary 	*alt_dict;
 		GtkAspeller 	*alt_gtkaspeller;