SF.net SVN: geany-plugins:[1424] trunk/geany-plugins/geanygendoc/src/ ggd-tag-utils.c

colombanw at users.sourceforge.net colombanw at xxxxx
Fri Jun 4 16:27:21 UTC 2010


Revision: 1424
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1424&view=rev
Author:   colombanw
Date:     2010-06-04 16:27:21 +0000 (Fri, 04 Jun 2010)

Log Message:
-----------
GeanyGenDoc: Fix finding parent of a tag when there is duplicated tags

Fix finding the parent of a tag if this parent have the same name and
scope than another tag in the document.

Modified Paths:
--------------
    trunk/geany-plugins/geanygendoc/src/ggd-tag-utils.c

Modified: trunk/geany-plugins/geanygendoc/src/ggd-tag-utils.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-tag-utils.c	2010-06-04 16:26:58 UTC (rev 1423)
+++ trunk/geany-plugins/geanygendoc/src/ggd-tag-utils.c	2010-06-04 16:27:21 UTC (rev 1424)
@@ -260,9 +260,9 @@
     GGD_PTR_ARRAY_FOR (tags, i, el) {
       if (! (el->type & tm_tag_file_t) &&
           (utils_str_equal (el->name, parent_name) &&
-           utils_str_equal (el->atts.entry.scope, parent_scope))) {
+           utils_str_equal (el->atts.entry.scope, parent_scope) &&
+           el->atts.entry.line <= child->atts.entry.line)) {
         tag = el;
-        break;
       }
     }
     g_free (parent_scope);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list