gtkhtml r9062 - trunk/components/editor



Author: pebolle
Date: Thu Dec 11 12:01:43 2008
New Revision: 9062
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9062&view=rev

Log:
2008-12-11  Paul Bolle  <pebolle tiscali nl>

	** Fixes bug #553995

	* gtkhtml-editor.c (gtkhtml_editor_set_changed):
	Check for NULL return from gtkhtml_editor_get_html().


Modified:
   trunk/components/editor/ChangeLog
   trunk/components/editor/gtkhtml-editor.c

Modified: trunk/components/editor/gtkhtml-editor.c
==============================================================================
--- trunk/components/editor/gtkhtml-editor.c	(original)
+++ trunk/components/editor/gtkhtml-editor.c	Thu Dec 11 12:01:43 2008
@@ -1040,10 +1040,11 @@
 
 	g_return_if_fail (GTKHTML_IS_EDITOR (editor));
 
-	html = gtkhtml_editor_get_html (editor);
-
-	if (!changed)
-		html_engine_saved (html->engine);
+	if (!changed) {
+		html = gtkhtml_editor_get_html (editor);
+		if (html)
+			html_engine_saved (html->engine);
+	}
 
 	editor->priv->changed = changed;
 }



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