aboutsummaryrefslogtreecommitdiff
path: root/editors/openoffice-3-devel/files/patch-topsection
blob: a332718508deeb155ae7e1a10dc57492a3c16f36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ../sw/source/filter/ww8/ww8par.cxx	9 Jul 2003 11:06:44 -0000	1.114
+++ ../sw/source/filter/ww8/ww8par.cxx	25 Jul 2003 22:55:23 -0000
@@ -2015,7 +2015,7 @@
 	bool bStartAttr = pPlcxMan->Get(&aRes); // hole Attribut-Pos
 	aRes.nAktCp = rTxtPos;				// Akt. Cp-Pos
 
-	if (aRes.nFlags & MAN_MASK_NEW_SEP)	// neue Section
+	if ((aRes.nFlags & MAN_MASK_NEW_SEP) || maSectionManager.empty())	// neue Section
     {
         ASSERT(pPaM->GetNode()->GetTxtNode(), "Missing txtnode");
 		// PageDesc erzeugen und fuellen
--- ../sw/source/filter/ww8/ww8par.hxx	30 Jun 2003 15:54:37 -0000	1.115
+++ ../sw/source/filter/ww8/ww8par.hxx	25 Jul 2003 22:55:28 -0000
@@ -720,6 +720,7 @@
     short GetPageLeft() const;
     short GetPageRight() const;
     short GetPageWidth() const;
+	bool empty() const { return maSegments.empty(); }
 };
     
 class wwFrameNamer