diff --git a/ChangeLog b/ChangeLog index 359b6e14..e3dffed4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2024-10-07 Hanna Knutsson + + * Do not show warning for logarithmic ratio unit, with quantity, as function argument + 2024-09-29 Hanna Knutsson * Fix inability to abort randpoisson() with very high rate value diff --git a/libqalculate/MathStructure-eval.cc b/libqalculate/MathStructure-eval.cc index 2ef3952b..cc2fe06a 100644 --- a/libqalculate/MathStructure-eval.cc +++ b/libqalculate/MathStructure-eval.cc @@ -2168,7 +2168,7 @@ bool warn_ratio_units(MathStructure &m, bool top_level = true) { } } else { for(size_t i = 0; i < m.size(); i++) { - if(warn_ratio_units(m[i], false)) return true; + if(warn_ratio_units(m[i], m.isFunction())) return true; } } return false;