[evolution-patches] gtkhtml: spell fix



Attached patch fixes #43294 (I should have examined NotZed's complain to
my previous fix closer, user confirmed fix and I wasn't able to
reproduce the crash until now :( )

Index: htmlengine.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlengine.c,v
retrieving revision 1.540
diff -u -p -r1.540 htmlengine.c
--- htmlengine.c	19 May 2003 12:58:36 -0000	1.540
+++ htmlengine.c	19 May 2003 17:11:49 -0000
@@ -5579,7 +5579,15 @@ html_engine_set_language (HTMLEngine *e,
 const gchar *
 html_engine_get_language (HTMLEngine *e)
 {
-	return e->language ? e->language : GTK_HTML_CLASS (GTK_WIDGET_GET_CLASS (e->widget))->properties->language;
+	gchar *language;
+
+	language = e->language;
+	if (!language)
+		language = GTK_HTML_CLASS (GTK_WIDGET_GET_CLASS (e->widget))->properties->language;
+	if (!language)
+		language = "";
+
+	return language;
 }
 
 static void


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