diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-13 22:11:03 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-14 11:01:52 +0100 |
commit | 691876554f6acbe9665a391fe78e476b049dffdb (patch) | |
tree | 2b6ad29b6df34dbdb4208831d3668f28220d657e /sc/source/ui/inc | |
parent | 83c300d00d25aa85381d91ed82b236ee8bb37a67 (diff) |
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 <serval2412@yahoo.fr>
Tested-by: Jenkins
(cherry picked from commit b2fd2c247f7f62f9ae6826c4f1b9065a50313217)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160701
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/SparklineRenderer.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |