diff options
author | Sergey Vladimirov <sergey@apache.org> | 2011-07-25 13:58:05 +0000 |
---|---|---|
committer | Sergey Vladimirov <sergey@apache.org> | 2011-07-25 13:58:05 +0000 |
commit | 32dbdf80719d49bdab809f3045e9013d2efc1b20 (patch) | |
tree | 131b65110375ab0f9b525e63a82a757ee4b8f0e3 /src/scratchpad/testcases/org/apache/poi | |
parent | 4c724bf71ccda1ab7e6b854aace8d7da3c581629 (diff) | |
download | poi-32dbdf80719d49bdab809f3045e9013d2efc1b20.tar.gz poi-32dbdf80719d49bdab809f3045e9013d2efc1b20.zip |
fix 47286 - Word documents saves in wrong format if source contains form elements
correctly translate char=>byte on saving CHPX and PAPX tables
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150704 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java | 2 | ||||
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java b/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java index 8e26e5ac1f..006fc77ddf 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java @@ -50,7 +50,7 @@ public final class TestCHPBinTable HWPFFileSystem fileSys = new HWPFFileSystem(); - _cHPBinTable.writeTo(fileSys, 0); + _cHPBinTable.writeTo(fileSys, 0, fakeTPT); ByteArrayOutputStream tableOut = fileSys.getStream("1Table"); ByteArrayOutputStream mainOut = fileSys.getStream("WordDocument"); diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java b/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java index e21cee3573..b9e3287f40 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java @@ -53,7 +53,7 @@ public final class TestPAPBinTable extends TestCase HWPFFileSystem fileSys = new HWPFFileSystem(); - _pAPBinTable.writeTo( fileSys, 0, fakeTPT ); + _pAPBinTable.writeTo( fileSys, fakeTPT ); ByteArrayOutputStream tableOut = fileSys.getStream( "1Table" ); ByteArrayOutputStream mainOut = fileSys.getStream( "WordDocument" ); |