[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed May 23 15:00:33 PDT 2012


 sw/source/ui/docvw/FrameControlsManager.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5b81e2df42dc5534b77fa3601c251530ffb7925e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed May 23 22:59:26 2012 +0100

    fix build, wrong type inside assert
    
    Change-Id: Iaf4bd3e2c5f54f2c75ecba444f3122dd4ed126d0

diff --git a/sw/source/ui/docvw/FrameControlsManager.cxx b/sw/source/ui/docvw/FrameControlsManager.cxx
index fabce8e..58c77d7 100644
--- a/sw/source/ui/docvw/FrameControlsManager.cxx
+++ b/sw/source/ui/docvw/FrameControlsManager.cxx
@@ -143,11 +143,10 @@ void SwFrameControlsManager::SetHeaderFooterControl( const SwPageFrm* pPageFrm,
         pControl.swap( pNewControl );
     }
 
-    assert(pControl->IsHeader() == bHeader);
-
     Rectangle aPageRect = m_pEditWin->LogicToPixel( pPageFrm->Frm().SVRect() );
 
     SwHeaderFooterWin* pHFWin = dynamic_cast< SwHeaderFooterWin* >( pControl.get() );
+    assert(pHFWin->IsHeader() == bHeader);
     pHFWin->SetOffset( aOffset, aPageRect.Left(), aPageRect.Right() );
 
     if ( !pHFWin->IsVisible() )


More information about the Libreoffice-commits mailing list