summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpitemdata.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/dpitemdata.cxx')
-rw-r--r--sc/source/core/data/dpitemdata.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index 1641572f087e..bb228949fb35 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -210,8 +210,9 @@ bool ScDPItemData::IsCaseInsEqual(const ScDPItemData& r) const
;
}
- if (mbStringInterned && r.mbStringInterned)
- return mpString == r.mpString;
+ if (mbStringInterned && r.mbStringInterned && mpString == r.mpString)
+ // Fast equality check for interned strings.
+ return true;
return ScGlobal::GetpTransliteration()->isEqual(GetString(), r.GetString());
}