summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-14 15:26:27 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-02-26 07:25:12 +0000
commit0c771fda26a03b3928e7962265658affc9fb9eb1 (patch)
treeb9113e4226e0a805618375273cc5c80babe92a86
parent0c58a1425233d76812f32c3e9e2a5910e7b88f0e (diff)
use >= as mentioned in the UI, fdo#60798
Change-Id: Iac6737e98eb0961de22036f42634ebad7d42dfcc Reviewed-on: https://gerrit.libreoffice.org/2409 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-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;