[evolution] Bug #677706 - Crash in spell_entry_recheck_all()



commit 4f549de56de92b0a27a6a9278721ab8c02a38ba6
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 12 10:32:47 2012 +0200

    Bug #677706 - Crash in spell_entry_recheck_all()

 widgets/misc/e-spell-entry.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/widgets/misc/e-spell-entry.c b/widgets/misc/e-spell-entry.c
index c091202..79f0d8a 100644
--- a/widgets/misc/e-spell-entry.c
+++ b/widgets/misc/e-spell-entry.c
@@ -142,6 +142,9 @@ spell_entry_recheck_all (ESpellEntry *entry)
 	PangoLayout *layout;
 	gint length, i;
 
+	if (!entry->priv->words)
+		return;
+
 	/* Remove all existing pango attributes.  These will get read as we check */
 	pango_attr_list_unref (entry->priv->attr_list);
 	entry->priv->attr_list = pango_attr_list_new ();



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