summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-11-16 23:27:27 +0100
committerMichael Stahl <mstahl@redhat.com>2015-11-17 10:20:34 +0100
commitc830aa640104317f951b9e470bde9bc66ed627a5 (patch)
tree04af191cb107e9eef4f5c7c24ff591d1d16150e5 /editeng
parent1d87c2456dab9a0f78ab25d029e82139488e2c57 (diff)
editeng: fix SvxTableField::operator==()
This was erroneously returning false due to inverted dynamic_cast check, causing "svl/source/items/itempool.cxx:750: unequal items in Put(): no operator==?, with ID/pos 4048" (regression from fa91dd31f39a24329d288d4e1cda28db3a16af0d) Change-Id: I9c5b49150470fc78d58ecd2a2e990637627bd591
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/flditem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index 4e252ac616d9..6432cbbf41fb 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -767,7 +767,7 @@ SvxFieldData* SvxTableField::Clone() const
bool SvxTableField::operator==( const SvxFieldData& rCmp ) const
{
- if (dynamic_cast< const SvxTableField *>(&rCmp) != nullptr)
+ if (dynamic_cast<const SvxTableField *>(&rCmp) == nullptr)
return false;
return mnTab == static_cast<const SvxTableField&>(rCmp).mnTab;