From 4f549de56de92b0a27a6a9278721ab8c02a38ba6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 12 Jun 2012 10:32:47 +0200 Subject: Bug #677706 - Crash in spell_entry_recheck_all() --- widgets/misc/e-spell-entry.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/misc') diff --git a/widgets/misc/e-spell-entry.c b/widgets/misc/e-spell-entry.c index c0912021af..79f0d8a816 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 (); -- cgit v1.2.3