Revision: 3838 http://geany.svn.sourceforge.net/geany/?rev=3838&view=rev Author: eht16 Date: 2009-06-05 15:09:04 +0000 (Fri, 05 Jun 2009)
Log Message: ----------- Fix wrongly created header guards when the class filenames contains dashes (patch by PCMan, thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/classbuilder.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-06-05 14:00:08 UTC (rev 3837) +++ trunk/ChangeLog 2009-06-05 15:09:04 UTC (rev 3838) @@ -2,6 +2,9 @@
* src/images.c, src/about.c, src/ui_utils.c, THANKS: Add a more Tango like icon for 'Save All' (by Jesse Mayes, thanks). + * plugins/classbuilder.c: + Fix wrongly created header guards when the class filenames contains + dashes (patch by PCMan, thanks).
2009-06-03 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/classbuilder.c =================================================================== --- trunk/plugins/classbuilder.c 2009-06-05 14:00:08 UTC (rev 3837) +++ trunk/plugins/classbuilder.c 2009-06-05 15:09:04 UTC (rev 3838) @@ -598,7 +598,7 @@ } class_info->header = g_strdup(gtk_entry_get_text(GTK_ENTRY(cc_dlg->header_entry))); class_info->header_guard = g_ascii_strup(class_info->header, -1); - g_strdelimit(class_info->header_guard, ".", '_'); + g_strdelimit(class_info->header_guard, ".-", '_'); switch (class_info->type) { case GEANY_CLASS_TYPE_CPP:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.