diff options
-rw-r--r-- | sw/source/core/layout/frmtool.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index 1f8576d0368a..1a61f726aaa1 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -2702,7 +2702,12 @@ SwPageFrm * InsertNewPage( SwPageDesc &rDesc, SwFrm *pUpper, SwDoc *pDoc = ((SwLayoutFrm*)pUpper)->GetFmt()->GetDoc(); SwFrmFmt *pFmt = 0; if (bFirst) + { pFmt = rDesc.GetFirstFmt(); + // If there is no first format, use what is relevant anyway. + if (!pFmt) + pFmt = bOdd ? rDesc.GetRightFmt() : rDesc.GetLeftFmt(); + } else pFmt = bOdd ? rDesc.GetRightFmt() : rDesc.GetLeftFmt(); //Wenn ich kein FrmFmt fuer die Seite gefunden habe, muss ich eben |