summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-21 13:50:32 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-21 13:51:06 +0200
commitaaf0b2faab845c624e568d6e1acbc501f5f355cb (patch)
treed212ae927a0f3494d881e8b74160791308cc0813
parente8d4b5b6c39d2d0abcd9e814b9fe9ce8c3e2150f (diff)
this needs to be the upper limit
Change-Id: I4b6f826f8f87b2c4a4bb73d9b6246505d2632b23
-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 3361d729cf8d..830610791448 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -654,10 +654,10 @@ double ScDataBarFormat::getMax(double nMin, double nMax) const
if(mpFormatData->mpUpperLimit->GetPercent())
{
- return nMin + (nMax-nMin)/100*mpFormatData->mpLowerLimit->GetValue();
+ return nMin + (nMax-nMin)/100*mpFormatData->mpUpperLimit->GetValue();
}
- return mpFormatData->mpLowerLimit->GetValue();
+ return mpFormatData->mpUpperLimit->GetValue();
}
ScDataBarInfo* ScDataBarFormat::GetDataBarInfo(const ScAddress& rAddr) const