diff -r d71faa0a6133 -r 2b78cf8634c3 main.cpp --- a/main.cpp Fri Mar 15 20:35:47 2013 +0200 +++ b/main.cpp Fri Mar 15 20:39:29 2013 +0200 @@ -12,9 +12,11 @@ g_CurrentFile = IO_ParseLDFile ("55966.dat"); g_BBox.calculate(); - printf ("bbox: (%.3f, %.3f, %.3f), (%.3f, %.3f, %.3f)\n", - FVERTEX (g_BBox.v0), FVERTEX (g_BBox.v1)); - printf ("%u objects\n", g_CurrentFile->objects.size()); + if (g_CurrentFile) { + printf ("bbox: (%.3f, %.3f, %.3f), (%.3f, %.3f, %.3f)\n", + FVERTEX (g_BBox.v0), FVERTEX (g_BBox.v1)); + printf ("%u objects\n", g_CurrentFile->objects.size()); + } QApplication app (argc, argv); LDForgeWindow* win = new LDForgeWindow;