]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclets/gtkdoc: Do not set section comment from a namespace with empty doc
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 28 Jul 2011 07:46:18 +0000 (09:46 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 28 Jul 2011 07:46:32 +0000 (09:46 +0200)
Fixes bug 648985.

src/doclets/gtkdoc/generator.vala

index 28faff17315b22fd24f89b53482ec1d66e46cebc..b12b006ecaebdd687967be348a91dea8b240df38 100644 (file)
@@ -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);
                }