summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-27 00:11:32 +0200
committerCaolán McNamara <caolanm@redhat.com>2016-09-27 09:46:05 +0000
commitd9d85d6c989e848922841d6ce36ab3f4dad054dd (patch)
treeae428bc5420dde462253c8f1f825014ea99de52a
parenteb637b3195f0099e6e21361d625d7292fb484329 (diff)
tdf#101104 this paranoid safety check actually causes a bug
Change-Id: Id31f98f5f84eabf603045e4d9f7ebd448689eed5 Reviewed-on: https://gerrit.libreoffice.org/29307 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/core/data/colorscale.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index 6df2b187991c..e85fd9f656dc 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -953,10 +953,6 @@ ScIconSetInfo* ScIconSetFormat::GetIconSetInfo(const ScAddress& rAddr) const
double nMin = GetMinValue();
double nMax = GetMaxValue();
- // this check is for safety
- if(nMin > nMax)
- return nullptr;
-
sal_Int32 nIndex = 0;
const_iterator itr = begin();
++itr;