Fix for linux crashing when reading OMM files

Linux doesn't use the '\r' line ending, so it doesn't recognize a line with only '\r' as being empty.
This commit is contained in:
Gene Payne
2022-09-13 16:10:03 -06:00
committed by GitHub
parent dbb973b0ec
commit 7946a93ee5

View File

@@ -499,7 +499,7 @@ std::vector<Parameters> readOmmFile(std::filesystem::path file) {
std::optional<Parameters> current = std::nullopt;
std::string line;
while (std::getline(f, line)) {
if (line.empty()) {
if (line.empty() || line == "\r") {
continue;
}