Revision: 1295 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1295&view=re... Author: colombanw Date: 2010-04-24 21:47:16 +0000 (Sat, 24 Apr 2010)
Log Message: ----------- GeanyGenDoc: Fix "document all" when there are symbols not to document
The "document all" action was aborting if the setting for any tag wasn't found rather than when something went actually wrong. This fixes the action when called on a file that contains symbols without rules.
Modified Paths: -------------- trunk/geanygendoc/src/ggd.c
Modified: trunk/geanygendoc/src/ggd.c =================================================================== --- trunk/geanygendoc/src/ggd.c 2010-04-24 20:39:20 UTC (rev 1294) +++ trunk/geanygendoc/src/ggd.c 2010-04-24 21:47:16 UTC (rev 1295) @@ -447,12 +447,13 @@ GgdDocSetting *setting;
setting = get_setting_from_tag (doctype, tag_array, tag, &tag); - if (! setting) { - success = FALSE; - break; - } else if (! g_hash_table_lookup (tag_done_table, tag)) { - success = do_insert_comment (sci, tag_array, tag, ft, setting); - g_hash_table_insert (tag_done_table, (gpointer)tag, (gpointer)tag); + if (setting && ! g_hash_table_lookup (tag_done_table, tag)) { + if (! do_insert_comment (sci, tag_array, tag, ft, setting)) { + success = FALSE; + break; + } else { + g_hash_table_insert (tag_done_table, (gpointer)tag, (gpointer)tag); + } } } sci_end_undo_action (sci);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.