Update to m13
[ooovba.git] / applied_patches / 0730-sw-section-import-fix.diff
blob37b2160233264e00d5113a0e391ffb8dcdaf459e
1 --- sw_save/source/filter/ww8/ww8par.cxx 2007-11-26 18:30:58.000000000 +0100
2 +++ sw/source/filter/ww8/ww8par.cxx 2008-02-26 03:55:14.000000000 +0100
3 @@ -2768,8 +2728,10 @@
4 else if (!nInTable)
6 // Always insert a txtnode for a column break, e.g. ##
7 - AppendTxtNode(*pPaM->GetPoint());
8 - rDoc.Insert(*pPaM, SvxFmtBreakItem(SVX_BREAK_COLUMN_BEFORE, RES_BREAK), 0);
9 + SwCntntNode *pCntNd=pPaM->GetCntntNode();
10 + if (pCntNd!=NULL && pCntNd->Len()>0) // if par is empty not break is needed
11 + AppendTxtNode(*pPaM->GetPoint());
12 + rDoc.Insert(*pPaM, SvxFmtBreakItem(SVX_BREAK_COLUMN_BEFORE, RES_BREAK), 0);
14 break;
15 case 0x7: