update gitignore

parent d1a51407
# Created by https://www.gitignore.io/api/c++,clion,emacs,cmake
# Edit at https://www.gitignore.io/?templates=c++,clion,emacs,cmake
......@@ -185,3 +184,6 @@ flycheck_*.el
# End of https://www.gitignore.io/api/c++,clion,emacs,cmake
.idea/*
.vscode/
build*
......@@ -680,12 +680,14 @@ bool SaxParser::parseGeometryJPS(QString fileName, GeometryFactory& geoFac)
double captionsColor=0;//red
if(!fileName.endsWith(".xml",Qt::CaseInsensitive)) return false;
QString wd;
QDir dir(wd);
SystemSettings::getWorkingDirectory(wd);
fileName=wd + "/" + fileName; //TODO: is this windows compatible?
QString s = dir.relativeFilePath(fileName);
fileName=wd + QDir::separator() + s;
// QString = QDir::cleanPath(wd + QDir::separator() + fileName);
Debug::Messages("filename: <%s)", fileName.toStdString().c_str());
Debug::Messages("wd: <%s>",wd.toStdString().c_str());
Debug::Messages("filename2: <%s>",fileName.toStdString().c_str());
Building* building = new Building();
string geometrypath = fileName.toStdString();
// read the geometry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment