From 7946a93ee593f47c55db8b3a6c112208c16b33c3 Mon Sep 17 00:00:00 2001 From: Gene Payne Date: Tue, 13 Sep 2022 16:10:03 -0600 Subject: [PATCH] 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. --- modules/space/kepler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/space/kepler.cpp b/modules/space/kepler.cpp index 32b2c67769..08a75b267b 100644 --- a/modules/space/kepler.cpp +++ b/modules/space/kepler.cpp @@ -499,7 +499,7 @@ std::vector readOmmFile(std::filesystem::path file) { std::optional current = std::nullopt; std::string line; while (std::getline(f, line)) { - if (line.empty()) { + if (line.empty() || line == "\r") { continue; }