Kaydet (Commit) 1bb7875f authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Correct equality check & disable Dump() for normal build.

üst 5e9d811a
......@@ -40,7 +40,7 @@
#include <boost/unordered_map.hpp>
#define DEBUG_DP_ITEM_DATA 1
#define DEBUG_DP_ITEM_DATA 0
class ScDocument;
......
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment