From d80e5d0a8a852fd9098f4d60af658ab402e1333b Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Fri, 16 May 2025 12:24:53 +0200 Subject: [PATCH] Base: fix QuantityPy::getValueAs Fixes: 77f45159638f ("Base: refactor QuantityPy class") --- src/Base/QuantityPyImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base/QuantityPyImp.cpp b/src/Base/QuantityPyImp.cpp index 617b914046..d832945b5e 100644 --- a/src/Base/QuantityPyImp.cpp +++ b/src/Base/QuantityPyImp.cpp @@ -192,7 +192,7 @@ PyObject* QuantityPy::getValueAs(PyObject* args) const return std::nullopt; } - return *getQuantityPtr(); + return *static_cast(object)->getQuantityPtr(); }; auto tryUnit = [&]() -> std::optional {