Kaydet (Commit) 598f0db1 authored tarafından Caolán McNamara's avatar Caolán McNamara

avoid crash in layout on exporting ooo101776-1.odt to .doc

Change-Id: Ie103baa15eee6bec382239423e008ac5808a4b7b
üst 025bfa7e
...@@ -2087,7 +2087,7 @@ bool SwFlowFrm::MoveBwd( bool &rbReformat ) ...@@ -2087,7 +2087,7 @@ bool SwFlowFrm::MoveBwd( bool &rbReformat )
// section and on page 1 is normal content. Method <FindPrev(..)> // section and on page 1 is normal content. Method <FindPrev(..)>
// will find the last content of page 1, but <GetLeaf(..)> // will find the last content of page 1, but <GetLeaf(..)>
// returns new upper on page 2. // returns new upper on page 2.
if ( pNewUpper->Lower() ) if (pNewUpper && pNewUpper->Lower())
{ {
SwLayoutFrm* pNewNextUpper = pNewUpper->GetLeaf( MAKEPAGE_NONE, true ); SwLayoutFrm* pNewNextUpper = pNewUpper->GetLeaf( MAKEPAGE_NONE, true );
if ( pNewNextUpper && if ( pNewNextUpper &&
......
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