From 151a00e53fabbb9423dde9706a61293d8ad187a4 Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Mon, 1 Jul 2024 09:37:45 +0200 Subject: [PATCH] Revert --- .../toolbox/components/datagrid/renderer/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/simulator/toolbox/components/datagrid/renderer/connection.cpp b/src/ui/simulator/toolbox/components/datagrid/renderer/connection.cpp index 06bfb5b0ac..69d8cb6a42 100644 --- a/src/ui/simulator/toolbox/components/datagrid/renderer/connection.cpp +++ b/src/ui/simulator/toolbox/components/datagrid/renderer/connection.cpp @@ -25,7 +25,7 @@ #include //! The minimal allowed value for hurdle costs when not null -#define LINK_MINIMAL_HURDLE_COSTS_NOT_nullptr 0.005 +#define LINK_MINIMAL_HURDLE_COSTS_NOT_NULL 0.005 using namespace Yuni; @@ -129,7 +129,7 @@ bool connectionParameters::cellValue(int x, int y, const Yuni::String& value) double v; if (!value.to(v)) return false; - if (Math::Abs(v) < LINK_MINIMAL_HURDLE_COSTS_NOT_nullptr) + if (Math::Abs(v) < LINK_MINIMAL_HURDLE_COSTS_NOT_NULL) return Renderer::Matrix<>::cellValue(x, y, "0"); break; }