summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-05-13 21:01:51 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-05-14 08:46:02 +0200
commit2a60c2b7d0f126841420aa6b23dde5b9a795d4fa (patch)
tree2eb50e75a5eb1ab36b42664929d5d86cb92fb9fd /sw/source
parent6b09276d157abada74e1a4989700139167207778 (diff)
Replace magic numbers in SwSectionFrame::UpdateAttr_()
By using the same SwSectionFrameInvFlags constants that SwSectionFrame::SwClientNotify() already does. Change-Id: I538737b59fe732045ea82097ac93580cf795f975 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115571 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/sectfrm.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index a8c585fb30f8..079e7de2b264 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -2648,9 +2648,9 @@ void SwSectionFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pN
( bChgEndn != IsEndnAtEnd() ) ||
( bChgMyEndn != IsEndnoteAtMyEnd() );
ChgColumns( aCol, rNewCol, bChgFootnote );
- rInvFlags |= static_cast<SwSectionFrameInvFlags>(0x10);
+ rInvFlags |= SwSectionFrameInvFlags::SetCompletePaint;
}
- rInvFlags |= static_cast<SwSectionFrameInvFlags>(0x01);
+ rInvFlags |= SwSectionFrameInvFlags::InvalidateSize;
bClear = false;
}
break;
@@ -2662,7 +2662,7 @@ void SwSectionFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pN
if (pOld && pNew)
{
ChgColumns( *static_cast<const SwFormatCol*>(pOld), *static_cast<const SwFormatCol*>(pNew) );
- rInvFlags |= static_cast<SwSectionFrameInvFlags>(0x11);
+ rInvFlags |= SwSectionFrameInvFlags::InvalidateSize | SwSectionFrameInvFlags::SetCompletePaint;
}
}
break;
@@ -2676,7 +2676,7 @@ void SwSectionFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pN
{
const SwFormatCol& rNewCol = GetFormat()->GetCol();
ChgColumns( rNewCol, rNewCol, true );
- rInvFlags |= static_cast<SwSectionFrameInvFlags>(0x01);
+ rInvFlags |= SwSectionFrameInvFlags::InvalidateSize;
}
}
break;
@@ -2691,12 +2691,12 @@ void SwSectionFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pN
{
const SwFormatCol& rNewCol = GetFormat()->GetCol();
ChgColumns( rNewCol, rNewCol, true );
- rInvFlags |= static_cast<SwSectionFrameInvFlags>(0x01);
+ rInvFlags |= SwSectionFrameInvFlags::InvalidateSize;
}
}
break;
case RES_COLUMNBALANCE:
- rInvFlags |= static_cast<SwSectionFrameInvFlags>(0x01);
+ rInvFlags |= SwSectionFrameInvFlags::InvalidateSize;
break;
case RES_FRAMEDIR :