aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
index c2e5659984..caed7b82df 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
@@ -433,11 +433,7 @@ public final class HWPFDocument extends HWPFDocumentCore
* separators and footnote separators.
*/
public Range getHeaderStoryRange() {
- return new Range(
- _cpSplit.getHeaderStoryStart(),
- _cpSplit.getHeaderStoryEnd(),
- this
- );
+ return getRange( SubdocumentType.HEADER );
}
/**
@@ -847,7 +843,14 @@ public final class HWPFDocument extends HWPFDocumentCore
writeProperties(pfs);
pfs.writeFilesystem(out);
- }
+
+ /*
+ * since we updated all references in FIB and etc, using new arrays to
+ * access data
+ */
+ this._tableStream = tableStream.toByteArray();
+ this._dataStream = dataBuf;
+ }
public byte[] getDataStream()
{