summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-12-12 09:03:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-12-12 09:07:40 +0100
commit47816cf3674fbbe2355b53692fe2facfbe3cfdc9 (patch)
tree21d52b49f9f00e55f78ce8c85a4ffe85f44862ee /sc
parentc85d8064cb67552e3ddcc73099769af09d7d0edd (diff)
Fix unnecessary wrong downcast
...from ScFormatEntry to ScCondFormatEntry instead of just ScConditionEntry, introduced with 3f614f431475e1bf3bb3bbeac59b0681309628b7 "tdf#95295: don't add duplicate conditional formats". Caused e.g. CppunitTest_sc_bugfix_test to fail under -fsanitize=vptr, when trying to downcast a ScValidationData. Change-Id: I913076d3538bafbdb2ac57b6bb1bd89199b048a6
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/conditio.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index eae43e7049c8..5dbe88df5102 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -629,7 +629,7 @@ bool ScConditionEntry::IsEqual( const ScFormatEntry& rOther, bool bIgnoreSrcPos
if (GetType() != rOther.GetType())
return false;
- const ScCondFormatEntry& r = static_cast<const ScCondFormatEntry&>(rOther);
+ const ScConditionEntry& r = static_cast<const ScConditionEntry&>(rOther);
bool bEq = (eOp == r.eOp && nOptions == r.nOptions &&
lcl_IsEqual( pFormula1, r.pFormula1 ) &&