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:47:06 +0000
commit6d66c353fb7ea7d47af2404e7e66cef0f6a690c3 (patch)
tree698ae91a5186e1b66394f9740cf25a5382e9f576
parent19c191a0a92b6ae9ca86aa4ee7afb887fd42a209 (diff)
tdf#101104 this paranoid safety check actually causes a bug
Change-Id: Id31f98f5f84eabf603045e4d9f7ebd448689eed5 Reviewed-on: https://gerrit.libreoffice.org/29308 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 42904e108004..f71aa96f8070 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -994,10 +994,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;