Skip to content
Snippets Groups Projects
Commit 125945bf authored by Ulrich Kemloh's avatar Ulrich Kemloh
Browse files

Logfile was not created in online modei, could lead to crash.

parent 7a622c21
No related branches found
No related tags found
No related merge requests found
......@@ -490,7 +490,10 @@ FacilityGeometry* MainWindow::parseGeometry(QString geometryString)
FacilityGeometry* geometry = visualisationThread->getGeometry();
if(!geofileName.isEmpty()) {
SystemSettings::CreateLogfile();
if (geofileName.endsWith(".xml",Qt::CaseInsensitive)) {
//parsing the file
if(!SaxParser::parseGeometryJPS(geofileName,geometry)) {
......@@ -500,6 +503,7 @@ FacilityGeometry* MainWindow::parseGeometry(QString geometryString)
//must not be a file name
SaxParser::parseGeometryTRAV(geofileName,geometry);
}
SystemSettings::DeleteLogfile();
}
// I assume it is a trav format node,
//which is the only one which can directly be inserted into a file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment