From d1a51407d96b68f13329b384cd9fd9bc71bd4ec0 Mon Sep 17 00:00:00 2001 From: Mohcine Chraibi <m.chraibi@fz-juelich.de> Date: Fri, 5 Apr 2019 17:59:41 +0200 Subject: [PATCH] correct absolute path to geometry --- src/MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 8c942d0..a17f36e 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -738,7 +738,7 @@ bool MainWindow::addPedestrianGroup(int groupID,QString fileName) Debug::Error("Geomery file does not exist."); exit(EXIT_FAILURE); } - geometry_file = check_file.fileName(); + //geometry_file = check_file.fileName(); } // @todo: check xml file too, although probably xml files // always have a geometry tag @@ -756,11 +756,11 @@ bool MainWindow::addPedestrianGroup(int groupID,QString fileName) if(! SaxParser::parseGeometryJPS(geometry_file,geometry)) { int res = QMessageBox::warning(this, "Errors in Geometry. Continue Parsing?", "JuPedSim has detected an error in the supplied geometry.\n" - "The simulation will likely failed using that geometry.\n" + "The simulation will likely fail using this geometry.\n" "Also make sure to validate your file.\n" "More information are provided in the log file:\n" +SystemSettings::getLogfile()+ - "\n\nShould I try to parse and display what I can ?" + "\n\nShould I try to parse and display what I can?" , QMessageBox::Yes | QMessageBox::No, QMessageBox::No); if (res == QMessageBox::No) { -- GitLab