gtkhtml r9042 - branches/gnome-2-24/components/editor



Author: mbarnes
Date: Tue Nov  4 23:05:31 2008
New Revision: 9042
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9042&view=rev

Log:
2008-11-04  Matthew Barnes  <mbarnes redhat com>

	* components/editor/gtkhtml-editor.c (editor_method_check_word):
	If no spell checkers are active, assume the word is correct.



Modified:
   branches/gnome-2-24/components/editor/ChangeLog
   branches/gnome-2-24/components/editor/gtkhtml-editor.c

Modified: branches/gnome-2-24/components/editor/gtkhtml-editor.c
==============================================================================
--- branches/gnome-2-24/components/editor/gtkhtml-editor.c	(original)
+++ branches/gnome-2-24/components/editor/gtkhtml-editor.c	Tue Nov  4 23:05:31 2008
@@ -244,6 +244,11 @@
 
 	list = editor->priv->active_spell_checkers;
 
+	/* If no spell checkers are active, assume the word is correct. */
+	if (list == NULL)
+		return TRUE;
+
+	/* The word is correct if ANY active spell checker can verify it. */
 	while (list != NULL && !correct) {
 		GtkhtmlSpellChecker *checker = list->data;
 



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