Resolves: fdo#69467 nTxtLeft not compared in operator==
so the maLRSpaceItem( 0, 0, 2000, 0, EE_PARA_OUTLLRSPACE ) in sd is considered the same value as the default all 0 EE_PARA_OUTLLRSPACE. But why the change of the Which id triggers this apparently always there underlying problem needs further investigation Change-Id: I41ef93cf8992f2b5cc72ddb474c54525415657b4
This commit is contained in:
@@ -561,14 +561,17 @@ int SvxLRSpaceItem::operator==( const SfxPoolItem& rAttr ) const
|
|||||||
{
|
{
|
||||||
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
|
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
|
||||||
|
|
||||||
|
const SvxLRSpaceItem& rOther = (const SvxLRSpaceItem&)rAttr;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
nLeftMargin == ((SvxLRSpaceItem&)rAttr).GetLeft() &&
|
nFirstLineOfst == rOther.GetTxtFirstLineOfst() &&
|
||||||
nRightMargin == ((SvxLRSpaceItem&)rAttr).GetRight() &&
|
nTxtLeft == rOther.GetTxtLeft() &&
|
||||||
nFirstLineOfst == ((SvxLRSpaceItem&)rAttr).GetTxtFirstLineOfst() &&
|
nLeftMargin == rOther.GetLeft() &&
|
||||||
nPropLeftMargin == ((SvxLRSpaceItem&)rAttr).GetPropLeft() &&
|
nRightMargin == rOther.GetRight() &&
|
||||||
nPropRightMargin == ((SvxLRSpaceItem&)rAttr).GetPropRight() &&
|
nPropFirstLineOfst == rOther.GetPropTxtFirstLineOfst() &&
|
||||||
nPropFirstLineOfst == ((SvxLRSpaceItem&)rAttr).GetPropTxtFirstLineOfst() &&
|
nPropLeftMargin == rOther.GetPropLeft() &&
|
||||||
bAutoFirst == ((SvxLRSpaceItem&)rAttr).IsAutoFirst() );
|
nPropRightMargin == rOther.GetPropRight() &&
|
||||||
|
bAutoFirst == rOther.IsAutoFirst() );
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user