summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3fe033a9d393..c8e4f3e17b55 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -898,13 +898,13 @@ ScIconSetInfo* ScIconSetFormat::GetIconSetInfo(const ScAddress& rAddr) const
double nValMax = CalcValue(nMin, nMax, itr);
++itr;
- while(itr != end() && nVal > nValMax)
+ while(itr != end() && nVal >= nValMax)
{
++nIndex;
nValMax = CalcValue(nMin, nMax, itr);
++itr;
}
- if(nVal > nValMax)
+ if(nVal >= nValMax)
++nIndex;
pInfo->nIconIndex = nIndex;