From: Luca Bruno Date: Thu, 28 Jul 2011 07:46:18 +0000 (+0200) Subject: doclets/gtkdoc: Do not set section comment from a namespace with empty doc X-Git-Tag: 0.37.1~3^2~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d7dfd22b5318a7d4bfd5da0acab3d7f4616dccc;p=thirdparty%2Fvala.git doclets/gtkdoc: Do not set section comment from a namespace with empty doc Fixes bug 648985. --- diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala index 28faff173..b12b006ec 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); }