[gnome-builder/wip/libide] editorframe: document can be NULL



commit a1de710dbed81240fb13de75f4cd3c9081a360bc
Author: Christian Hergert <christian hergert me>
Date:   Wed Feb 11 11:11:13 2015 -0800

    editorframe: document can be NULL

 src/editor/gb-editor-frame.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index 4e817fd..13f7c3e 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -675,7 +675,7 @@ gb_editor_frame_set_document (GbEditorFrame    *self,
                               GbEditorDocument *document)
 {
   g_return_if_fail (GB_IS_EDITOR_FRAME (self));
-  g_return_if_fail (GB_IS_EDITOR_DOCUMENT (document));
+  g_return_if_fail (!document || GB_IS_EDITOR_DOCUMENT (document));
 
   if (document != self->priv->document)
     {


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