Revision: 4891 http://geany.svn.sourceforge.net/geany/?rev=4891&view=rev Author: eht16 Date: 2010-05-09 15:48:18 +0000 (Sun, 09 May 2010)
Log Message: ----------- Guard C++/GTK class generation specific code
Modified Paths: -------------- trunk/plugins/classbuilder.c
Modified: trunk/plugins/classbuilder.c =================================================================== --- trunk/plugins/classbuilder.c 2010-05-09 15:48:10 UTC (rev 4890) +++ trunk/plugins/classbuilder.c 2010-05-09 15:48:18 UTC (rev 4891) @@ -707,9 +707,12 @@ class_info->base_name = g_strdup(""); class_info->base_include = g_strdup(""); } - 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, ".-", '_'); + if (cc_dlg->header_entry != NULL) + { + 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, ".-", '_'); + } 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.