[GtkHtml]Fix for bug 333886

Jeff Cai <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1141822583.24711.13.camel@commissionaire>
Hi
Attched is the patch for bug 333886, please review it.

Jeff Cai

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
patch333886 (text/x-patch, 1.1 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2170
diff -u -r1.2170 ChangeLog
--- ChangeLog	1 Mar 2006 06:04:01 -0000	1.2170
+++ ChangeLog	8 Mar 2006 12:52:17 -0000
@@ -1,3 +1,10 @@
+2006-03-08  Jeff Cai  <[email protected]>
+
+	* htmlselection.c: (html_engine_is_selection_active):
+	No need to check before the function returns.
+
+	* Fixes bug #333886
+
 2006-03-01  Srinivasa Ragavan  <[email protected]>
 
 	* gtkhtml.c: (setup_class_properties), (next_uri),
Index: htmlselection.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlselection.c,v
retrieving revision 1.31
diff -u -r1.31 htmlselection.c
--- htmlselection.c	4 Jan 2005 12:47:33 -0000	1.31
+++ htmlselection.c	8 Mar 2006 12:52:17 -0000
@@ -353,7 +353,6 @@
 {
 	html_engine_edit_selection_updater_do_idle (e->selection_updater);
 	if (e->selection) {
-		g_return_val_if_fail (!html_engine_get_editable (e) || e->mark, FALSE);
 		return (!html_engine_get_editable (e) || e->mark) ? TRUE : FALSE;
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.