[Commits] gtkaspell.c 1.9.2.74 1.9.2.75

pawel at claws-mail.org pawel at claws-mail.org
Sat Nov 5 15:19:34 CET 2011


Update of /home/claws-mail/claws/src/gtk
In directory claws-mail:/tmp/cvs-serv27207/src/gtk

Modified Files:
      Tag: gtk2
	gtkaspell.c 
Log Message:
2011-11-05 [pawel]	3.7.10cvs70

	* src/gtk/gtkaspell.c
		Fix crasher when spellchecking is not enabled

Index: gtkaspell.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkaspell.c,v
retrieving revision 1.9.2.74
retrieving revision 1.9.2.75
diff -u -d -r1.9.2.74 -r1.9.2.75
--- gtkaspell.c	1 Nov 2011 20:29:31 -0000	1.9.2.74
+++ gtkaspell.c	5 Nov 2011 14:19:32 -0000	1.9.2.75
@@ -1190,7 +1190,11 @@
 
 void gtkaspell_block_check(GtkAspell *gtkaspell)
 {
-	GtkTextView *gtktext = gtkaspell->gtktext;
+	GtkTextView *gtktext;
+	
+	cm_return_if_fail(gtkaspell);
+		
+	gtktext = gtkaspell->gtktext;
 	g_signal_handlers_block_by_func(G_OBJECT(gtktext),
 					 G_CALLBACK(entry_insert_cb),
 					 gtkaspell);
@@ -1201,7 +1205,11 @@
 
 void gtkaspell_unblock_check(GtkAspell *gtkaspell)
 {
-	GtkTextView *gtktext = gtkaspell->gtktext;
+	GtkTextView *gtktext;
+
+	cm_return_if_fail(gtkaspell);
+		
+	gtktext = gtkaspell->gtktext;
 	g_signal_handlers_unblock_by_func(G_OBJECT(gtktext),
 					 G_CALLBACK(entry_insert_cb),
 					 gtkaspell);



More information about the Commits mailing list