summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-12 20:43:30 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-13 12:34:20 +0200
commit87956cb7154bd73ff30fc1169a656a4bc0fd78d3 (patch)
treeece639c93ead8ce8a3fb1f3c89ef377ac04beba4 /sc
parentf6fdfc36bab69379970c39a596ba5cabf26e3744 (diff)
percent and percentile also are relative to the area values
Change-Id: Ia4382cba061905cd7d2d029a26e28ec2b8ee884e
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 1e5bfe0f8ff9..dd34efa1273e 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -298,7 +298,7 @@ double ScColorScaleFormat::GetMinValue() const
{
const_iterator itr = maColorScales.begin();
- if(itr->GetType() != COLORSCALE_MIN && itr->GetType() != COLORSCALE_AUTOMIN)
+ if(itr->GetType() == COLORSCALE_VALUE || itr->GetType() == COLORSCALE_FORMULA)
return itr->GetValue();
else
{
@@ -310,7 +310,7 @@ double ScColorScaleFormat::GetMaxValue() const
{
ColorScaleEntries::const_reverse_iterator itr = maColorScales.rbegin();
- if(itr->GetType() != COLORSCALE_MAX && itr->GetType() != COLORSCALE_AUTOMAX)
+ if(itr->GetType() == COLORSCALE_VALUE || itr->GetType() == COLORSCALE_FORMULA)
return itr->GetValue();
else
{