sc/source/ui/inc/SparklineRenderer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 01b3529052059f37f1e87e827982d03ce22744b0 Author: Julien Nabet <[email protected]> AuthorDate: Wed Dec 13 22:11:03 2023 +0100 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Fri Dec 15 08:41:28 2023 +0100 tdf#152929: Sparkline ignore "High points" color when all values are negative See https://en.cppreference.com/w/cpp/types/numeric_limits/min "min() returns the minimum positive value" https://en.cppreference.com/w/cpp/types/numeric_limits/lowest (since C++11) "Returns the lowest finite value representable by the numeric type T, that is, a finite value x such that there is no other finite value y where y < x." Change-Id: I322cd84f8124aa6f3f306c168f33cb633418b3f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160719 Reviewed-by: Julien Nabet <[email protected]> Tested-by: Jenkins (cherry picked from commit b2fd2c247f7f62f9ae6826c4f1b9065a50313217) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160702 Reviewed-by: Tomaž Vajngerl <[email protected]> diff --git a/sc/source/ui/inc/SparklineRenderer.hxx b/sc/source/ui/inc/SparklineRenderer.hxx index 23d62d6d6ae6..1a8adc39a828 100644 --- a/sc/source/ui/inc/SparklineRenderer.hxx +++ b/sc/source/ui/inc/SparklineRenderer.hxx @@ -72,7 +72,7 @@ public: size_t mnLastIndex = 0; double mfMinimum = std::numeric_limits<double>::max(); - double mfMaximum = std::numeric_limits<double>::min(); + double mfMaximum = std::numeric_limits<double>::lowest(); std::vector<SparklineValue> const& getValuesList() const { return maValueList; }
