diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-21 13:50:32 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-21 13:51:06 +0200 |
commit | aaf0b2faab845c624e568d6e1acbc501f5f355cb (patch) | |
tree | d212ae927a0f3494d881e8b74160791308cc0813 /sc | |
parent | e8d4b5b6c39d2d0abcd9e814b9fe9ce8c3e2150f (diff) |
this needs to be the upper limit
Change-Id: I4b6f826f8f87b2c4a4bb73d9b6246505d2632b23
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 4 |
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 |