aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-spell-entry.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-12 16:32:47 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-12 16:32:47 +0800
commit4f549de56de92b0a27a6a9278721ab8c02a38ba6 (patch)
treec9b3ed92d759dc837a851a63a60f540862005dbe /widgets/misc/e-spell-entry.c
parent798bf2a9944e2db24f271e3dfb99fb1f26117f58 (diff)
downloadgsoc2013-evolution-4f549de56de92b0a27a6a9278721ab8c02a38ba6.tar
gsoc2013-evolution-4f549de56de92b0a27a6a9278721ab8c02a38ba6.tar.gz
gsoc2013-evolution-4f549de56de92b0a27a6a9278721ab8c02a38ba6.tar.bz2
gsoc2013-evolution-4f549de56de92b0a27a6a9278721ab8c02a38ba6.tar.lz
gsoc2013-evolution-4f549de56de92b0a27a6a9278721ab8c02a38ba6.tar.xz
gsoc2013-evolution-4f549de56de92b0a27a6a9278721ab8c02a38ba6.tar.zst
gsoc2013-evolution-4f549de56de92b0a27a6a9278721ab8c02a38ba6.zip
Bug #677706 - Crash in spell_entry_recheck_all()
Diffstat (limited to 'widgets/misc/e-spell-entry.c')
-rw-r--r--widgets/misc/e-spell-entry.c3
1 files changed, 3 insertions, 0 deletions
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 ();