diff options
Diffstat (limited to 'sw/source/ui/docvw/FrameControlsManager.cxx')
| -rw-r--r-- | sw/source/ui/docvw/FrameControlsManager.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/docvw/FrameControlsManager.cxx b/sw/source/ui/docvw/FrameControlsManager.cxx index 72671049bbc5..40527a64b237 100644 --- a/sw/source/ui/docvw/FrameControlsManager.cxx +++ b/sw/source/ui/docvw/FrameControlsManager.cxx @@ -149,11 +149,13 @@ void SwFrameControlsManager::SetReadonlyControls( bool bReadonly ) } } -void SwFrameControlsManager::SetHeaderFooterControl( const SwPageFrm* pPageFrm, bool bHeader, Point aOffset ) +void SwFrameControlsManager::SetHeaderFooterControl( const SwPageFrm* pPageFrm, FrameControlType eType, Point aOffset ) { + OSL_ASSERT( eType == Header || eType == Footer ); + // Check if we already have the control SwFrameControlPtr pControl; - FrameControlType eType = bHeader? Header: Footer; + const bool bHeader = ( eType == Header ); vector< SwFrameControlPtr >& aControls = m_aControls[eType]; |
