[valadoc] doclets/gtkdoc: Do not set section comment from a namespace with empty doc



commit 3d7dfd22b5318a7d4bfd5da0acab3d7f4616dccc
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Jul 28 09:46:18 2011 +0200

    doclets/gtkdoc: Do not set section comment from a namespace with empty doc
    
    Fixes bug 648985.

 src/doclets/gtkdoc/generator.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index 28faff1..b12b006 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -282,7 +282,7 @@ public class Gtkdoc.Generator : Api.Visitor {
 	}
 
 	public override void visit_namespace (Api.Namespace ns) {
-		if (ns.get_filename () != null) {
+		if (ns.get_filename () != null && ns.documentation != null) {
 			set_section_comment (ns.get_filename (), get_section (ns.get_filename ()), ns.documentation);
 		}
 



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