[Libreoffice-commits] core.git: Branch 'libreoffice-4-0-1' - sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Tue Feb 26 03:33:44 PST 2013


 sc/source/core/data/colorscale.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5cb54fa422f7c29383e0eb429e568856015352db
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Thu Feb 14 15:26:27 2013 +0100

    use >= as mentioned in the UI, fdo#60798
    
    Change-Id: Iac6737e98eb0961de22036f42634ebad7d42dfcc
    Reviewed-on: https://gerrit.libreoffice.org/2409
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
    Reviewed-on: https://gerrit.libreoffice.org/2419
    Reviewed-by: Michael Meeks <michael.meeks at suse.com>
    Reviewed-by: Petr Mladek <pmladek at suse.cz>
    Tested-by: Petr Mladek <pmladek at suse.cz>

diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index 3fe033a..c8e4f3e 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;


More information about the Libreoffice-commits mailing list