better parsing

parent e64cd1bb
...@@ -1116,7 +1116,7 @@ QString SaxParser::extractGeometryFilenameTXT(QString &filename) ...@@ -1116,7 +1116,7 @@ QString SaxParser::extractGeometryFilenameTXT(QString &filename)
// std::cout << " >> " << line.toStdString().c_str() << endl; // std::cout << " >> " << line.toStdString().c_str() << endl;
if(line.split(":").size()==2) if(line.split(":").size()==2)
{ {
if(line.split(":")[0] == "#geometry") if(line.split(":")[0].contains("geometry",Qt::CaseInsensitive)
{ {
extracted_geo_name = line.split(":")[1]; extracted_geo_name = line.split(":")[1];
} }
......
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