sc/source/core/data/colorscale.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 1db8f09103403851baa193527eadd3a990be55c3 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Sun Aug 12 01:15:17 2012 +0200 correctly calculate percentile for upper data bar limit Change-Id: I72eab0d6e34a8383368f7f3768e2429f1e65557d Signed-off-by: Kohei Yoshida <kohei.yosh...@gmail.com> diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index 38f061a..fcda332 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits