Add support for alternate LineGroup file
This commit is contained in:
committed by
Yorik van Havre
parent
5a39efa771
commit
8ba4cd1058
@@ -180,6 +180,9 @@ LineGroup* LineGroup::lineGroupFactory(std::string groupName)
|
||||
std::string defaultFileName = defaultDir + "LineGroup.csv";
|
||||
|
||||
std::string lgFileName = hGrp->GetASCII("LineGroupFile",defaultFileName.c_str());
|
||||
if (lgFileName.empty()) {
|
||||
lgFileName = defaultFileName;
|
||||
}
|
||||
|
||||
std::string lgRecord = LineGroup::getRecordFromFile(lgFileName, groupName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user