summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpitemdata.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 12:37:30 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 12:37:30 -0500
commit1bb7875f275d95a0a764df5d8d6954b7e8841152 (patch)
treeb19762ed18ad8aa5e668917ea8991e9d42a2a228 /sc/source/core/data/dpitemdata.cxx
parent5e9d811ab8a1c0481c67e3d4589e0a16fb781120 (diff)
Correct equality check & disable Dump() for normal build.
Diffstat (limited to 'sc/source/core/data/dpitemdata.cxx')
-rw-r--r--sc/source/core/data/dpitemdata.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index f0ac5d58e09f..2870a5c784b1 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -186,8 +186,17 @@ bool ScDPItemData::IsCaseInsEqual(const ScDPItemData& r) const
if (meType != r.meType)
return false;
- if (meType == Value)
- return rtl::math::approxEqual(mfValue, r.mfValue);
+ switch (meType)
+ {
+ case Value:
+ case RangeStart:
+ return rtl::math::approxEqual(mfValue, r.mfValue);
+ case GroupValue:
+ return maGroupValue.mnGroupType == r.maGroupValue.mnGroupType &&
+ maGroupValue.mnValue == r.maGroupValue.mnValue;
+ default:
+ ;
+ }
return ScGlobal::GetpTransliteration()->isEqual(GetString(), r.GetString());
}