Kaydet (Commit) 5b81e2df authored tarafından Caolán McNamara's avatar Caolán McNamara

fix build, wrong type inside assert

Change-Id: Iaf4bd3e2c5f54f2c75ecba444f3122dd4ed126d0
üst b63766b3
...@@ -143,11 +143,10 @@ void SwFrameControlsManager::SetHeaderFooterControl( const SwPageFrm* pPageFrm, ...@@ -143,11 +143,10 @@ void SwFrameControlsManager::SetHeaderFooterControl( const SwPageFrm* pPageFrm,
pControl.swap( pNewControl ); pControl.swap( pNewControl );
} }
assert(pControl->IsHeader() == bHeader);
Rectangle aPageRect = m_pEditWin->LogicToPixel( pPageFrm->Frm().SVRect() ); Rectangle aPageRect = m_pEditWin->LogicToPixel( pPageFrm->Frm().SVRect() );
SwHeaderFooterWin* pHFWin = dynamic_cast< SwHeaderFooterWin* >( pControl.get() ); SwHeaderFooterWin* pHFWin = dynamic_cast< SwHeaderFooterWin* >( pControl.get() );
assert(pHFWin->IsHeader() == bHeader);
pHFWin->SetOffset( aOffset, aPageRect.Left(), aPageRect.Right() ); pHFWin->SetOffset( aOffset, aPageRect.Left(), aPageRect.Right() );
if ( !pHFWin->IsVisible() ) if ( !pHFWin->IsVisible() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment