sc/source/ui/inc/SparklineRenderer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 691876554f6acbe9665a391fe78e476b049dffdb Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Wed Dec 13 22:11:03 2023 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Thu Dec 14 11:01:52 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 <serval2...@yahoo.fr> Tested-by: Jenkins (cherry picked from commit b2fd2c247f7f62f9ae6826c4f1b9065a50313217) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160701 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; }