Kaydet (Commit) 723f772d authored tarafından Henning Brinkmann's avatar Henning Brinkmann

#i106749: use FindPageDesc to get the current page description

üst a6489cbf
......@@ -439,10 +439,20 @@ void MSWordExportBase::OutputSectionBreaks( const SfxItemSet *pSet, const SwNode
//section.
bool bBreakSet = false;
const SwPageDesc * pPageDesc = rNd.FindPageDesc(sal_False);
if (pAktPageDesc != pPageDesc)
{
bBreakSet = true;
bNewPageDesc = true;
pAktPageDesc = pPageDesc;
}
if ( pSet && pSet->Count() )
{
if ( SFX_ITEM_SET == pSet->GetItemState( RES_PAGEDESC, false, &pItem )
&& ( (SwFmtPageDesc*)pItem )->GetRegisteredIn() )
bool bGotItem =
if ( SFX_ITEM_SET == pSet->GetItemState( RES_PAGEDESC, false, &pItem ) &&
dynamic_cast<const SwFmtPageDesc*>(pItem)->GetRegisteredIn() != NULL)
{
bBreakSet = true;
bNewPageDesc = true;
......
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