mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user