summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-12 01:45:00 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-13 12:34:18 +0200
commit23b0e840364dc839642491663613a12f30ff6df0 (patch)
tree18ebaceda96c72238f941c735a3b4547d1bb790a
parentc467aa6f29a004b03c072bb89fa36b687daca9f3 (diff)
calculate percentile for upper data bar limit correctly
Change-Id: Ie3faf8b15cfeb5a1a2e5df980e9ffbd8a3fcf756
-rw-r--r--sc/source/core/data/colorscale.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index 0cecc9f81c36..1e5bfe0f8ff9 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -701,7 +701,7 @@ double ScDataBarFormat::getMax(double nMin, double nMax) const
return nMin + (nMax-nMin)/100*mpFormatData->mpUpperLimit->GetValue();
case COLORSCALE_PERCENTILE:
{
- double fPercentile = mpFormatData->mpLowerLimit->GetValue()/100.0;
+ double fPercentile = mpFormatData->mpUpperLimit->GetValue()/100.0;
std::vector<double> aValues;
getValues(aValues);
return GetPercentile(aValues, fPercentile);