Thank you for considering this.
But unfortunately it causes to crash.
A patch attached.
Index: simmenu.cc
===================================================================
--- simmenu.cc (r2344)
+++ simmenu.cc (copy)
@@ -553,7 +553,7 @@
}
}
else {
- dbg->error( "werkzeug_t::init_menu()", "When parsing menuconf.tab: No simple tool %i defined (max %i)!", toolnr, GENERAL_TOOL_COUNT );
+ dbg->error( "werkzeug_t::init_menu()", "When parsing menuconf.tab: No simple tool %i defined (max %i)!", toolnr, SIMPLE_TOOL_COUNT );
}
}
else if(strstr(toolname,"dialog_tool[")) {
@@ -578,7 +578,7 @@
}
}
else {
- dbg->error( "werkzeug_t::init_menu()", "When parsing menuconf.tab: No dialog tool %i defined (max %i)!", toolnr, GENERAL_TOOL_COUNT );
+ dbg->error( "werkzeug_t::init_menu()", "When parsing menuconf.tab: No dialog tool %i defined (max %i)!", toolnr, DIALOGE_TOOL_COUNT );
}
}
else if(strstr(toolname,"toolbar[")) {
@@ -612,7 +612,9 @@
addtool->default_param = strdup(toolname);
addtool->command_key = 1;
}
- toolbar_tool[i]->append(addtool);
+ if(addtool) {
+ toolbar_tool[i]->append(addtool);
+ }
}
}
// sort characters