diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 6f2f48411..4c2404dba 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -1777,6 +1777,11 @@ private: int maturity = 0; string descStr(" "); descStr += path.file(); + // trim common suffix from file names + int nPos = descStr.rfind("-set.xml"); + if (nPos == (int)(descStr.size() - 8)) { + descStr.resize(nPos); + } SGPropertyNode *node = root.getNode("sim"); if (node) {