diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-26 01:51:57 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-26 01:51:57 +1000 |
commit | 500e81329a411b3a6df6e300beab68418dc00658 (patch) | |
tree | 3f4fcb7601f1597a9562b4986a2f1d654e8d1c36 /source/core/StarImageProcessing.cpp | |
parent | 09d26d43b5262f480fd55eab9980eff06a71edbb (diff) |
Fix minor issues
Diffstat (limited to 'source/core/StarImageProcessing.cpp')
-rw-r--r-- | source/core/StarImageProcessing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index 0330a2d..8473975 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -150,7 +150,8 @@ ImageOperation imageOperationFromString(StringView string) { try { List<StringView> bits; string.forEachSplitAnyView("=;", [&](StringView split, size_t, size_t) { - bits.emplace_back(split); + if (!split.empty()) + bits.emplace_back(split); }); String type = bits.at(0); |