[Libreoffice-commits] .: sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu Oct 6 03:47:57 PDT 2011


 sw/source/core/layout/paintfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 80d96f738abd01d68befc44a607abe3c360604b1
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Thu Oct 6 12:43:17 2011 +0200

    Page Break: fixed crasher, the page frame can contain no children

diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index d51ef08..32a4365 100755
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -3340,7 +3340,7 @@ void SwPageFrm::PaintBreak( ) const
 
             // Test if the first node is a table
             const SwFrm* pFirstFrm = pLayBody->Lower();
-            if ( pFirstFrm->IsTabFrm() )
+            if ( pFirstFrm && pFirstFrm->IsTabFrm() )
                 pFlowFrm = static_cast< const SwTabFrm* >( pFirstFrm );
 
             if ( pFlowFrm && pFlowFrm->IsPageBreak( sal_True ) )


More information about the Libreoffice-commits mailing list