summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-12-13 22:11:03 +0100
committerTomaž Vajngerl <quikee@gmail.com>2023-12-14 01:40:05 +0100
commitb2fd2c247f7f62f9ae6826c4f1b9065a50313217 (patch)
tree5b8555917f3a0be23aef9fb5185490370c07f03f /sc
parent6cd6df7e0d6b0ff8150c9a95a35b17800942026a (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 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/SparklineRenderer.hxx2
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; }