From f7b7a2d4d54d71e005274297a790f7ec42bd6c1f Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 29 Apr 2024 04:14:52 +1000 Subject: [PATCH] oops: fix lexical & oob exceptions in StarImageProcessing.cpp --- source/core/StarImageProcessing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index 5ed8690..d1ff0dd 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -342,9 +342,9 @@ ImageOperation imageOperationFromString(StringView string) { return NullImageOperation(); } } catch (OutOfRangeException const& e) { - return ErrorImageOperation{std::exception_ptr()}; + return ErrorImageOperation{std::current_exception()}; } catch (BadLexicalCast const& e) { - return ErrorImageOperation{std::exception_ptr()}; + return ErrorImageOperation{std::current_exception()}; } }