aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hpsf
diff options
context:
space:
mode:
authorSergey Vladimirov <sergey@apache.org>2011-10-02 08:36:51 +0000
committerSergey Vladimirov <sergey@apache.org>2011-10-02 08:36:51 +0000
commit30bec5e76b60331f0b8c7acca5ab18cf24673df6 (patch)
tree9200ba148df28b353ca110598a1153a638425020 /src/java/org/apache/poi/hpsf
parent026f46dbcc6f420e31fb34d2d2f4aad156e195bd (diff)
downloadpoi-30bec5e76b60331f0b8c7acca5ab18cf24673df6.tar.gz
poi-30bec5e76b60331f0b8c7acca5ab18cf24673df6.zip
fix VT_BOOL support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hpsf')
-rw-r--r--src/java/org/apache/poi/hpsf/VariantSupport.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/hpsf/VariantSupport.java b/src/java/org/apache/poi/hpsf/VariantSupport.java
index af7347b714..ecb486b94b 100644
--- a/src/java/org/apache/poi/hpsf/VariantSupport.java
+++ b/src/java/org/apache/poi/hpsf/VariantSupport.java
@@ -476,12 +476,16 @@ public class VariantSupport extends Variant
{
case Variant.VT_BOOL:
{
- short trueOrFalse;
if ( ( (Boolean) value ).booleanValue() )
- trueOrFalse = (short) 0xFFFF;
+ {
+ out.write( 0xff );
+ out.write( 0xff );
+ }
else
- trueOrFalse = (short) 0x0000;
- TypeWriter.writeUShortToStream( out, trueOrFalse );
+ {
+ out.write( 0x00 );
+ out.write( 0x00 );
+ }
length += 2;
break;
}