summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-12 01:15:17 +0200
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-08-13 08:47:48 -0400
commit1db8f09103403851baa193527eadd3a990be55c3 (patch)
tree5927d8933f9cb640c7a26b7370f4067600506fef /sc
parent6661959e6a6671f222c931d5eb1b51c21d630ea6 (diff)
correctly calculate percentile for upper data bar limit
Change-Id: I72eab0d6e34a8383368f7f3768e2429f1e65557d Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/colorscale.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index 38f061aed9b2..fcda332aa618 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -725,9 +725,9 @@ double ScDataBarFormat::getMax(double nMin, double nMax) const
return nMax;
else if(mpFormatData->mpUpperLimit->GetPercent())
return nMin + (nMax-nMin)/100*mpFormatData->mpUpperLimit->GetValue();
- else if(mpFormatData->mpLowerLimit->GetPercentile())
+ else if(mpFormatData->mpUpperLimit->GetPercentile())
{
- double fPercentile = mpFormatData->mpLowerLimit->GetValue()/100.0;
+ double fPercentile = mpFormatData->mpUpperLimit->GetValue()/100.0;
std::vector<double> aValues;
getValues(aValues);
return GetPercentile(aValues, fPercentile);