[gtkhtml] Bug #624315 - Skip spelling update when no content set
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug #624315 - Skip spelling update when no content set
- Date: Wed, 14 Jul 2010 11:38:38 +0000 (UTC)
commit f8449637aa0a65f54631b4396dbe2f1089477f03
Author: Milan Crha <mcrha redhat com>
Date: Wed Jul 14 13:38:06 2010 +0200
Bug #624315 - Skip spelling update when no content set
gtkhtml/gtkhtml.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index 5237610..1a844ab 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -4087,6 +4087,10 @@ gtk_html_set_inline_spelling (GtkHTML *html,
html->priv->inline_spelling = inline_spell;
+ /* do not update content, when there is none set (yet) */
+ if (!html->engine || !html->engine->clue)
+ return;
+
if (gtk_html_get_editable (html) && html->priv->inline_spelling)
html_engine_spell_check (html->engine);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]