From 813385c92d18636afa0b495f5f59f119f921ced6 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 6 Mar 2019 14:25:45 +0100 Subject: [PATCH] In ctulimit, do not set the initial parameter error to the parameter value if the error is larger than the value (#2762). --- src/ctulimit/ctulimit.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ctulimit/ctulimit.cpp b/src/ctulimit/ctulimit.cpp index 3ad3573..0545d93 100755 --- a/src/ctulimit/ctulimit.cpp +++ b/src/ctulimit/ctulimit.cpp @@ -605,13 +605,7 @@ void ctulimit::get_parameter_brackets(double& parmin, double& parmax) double error = m_model_par->factor_error(); // If parameter error is zero then take parameter value as error - if (error == 0) { - error = value; - } - - // If parameter error is larger than parameter value then take parameter - // value as error - else if (std::abs(error) > std::abs(value)) { + if (error == 0.0) { error = value; } -- libgit2 0.21.4