Skip to content
Snippets Groups Projects
Commit b811153d authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

FlGUi : do not crash if no argc, argv are provided

parent 4f4bf580
No related branches found
No related tags found
No related merge requests found
...@@ -304,7 +304,7 @@ FlGui::FlGui(int argc, char **argv) ...@@ -304,7 +304,7 @@ FlGui::FlGui(int argc, char **argv)
gmsh32x32, 32, 32)); gmsh32x32, 32, 32));
#endif #endif
graph[0]->getWindow()->show(1, argv); graph[0]->getWindow()->show(argc >0 ? 1 : 0, argv);
if(graph[0]->getMenuWindow()) graph[0]->getMenuWindow()->show(); if(graph[0]->getMenuWindow()) graph[0]->getMenuWindow()->show();
// graphic window should have the initial focus (so we can e.g. directly loop // graphic window should have the initial focus (so we can e.g. directly loop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment