poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1178147 - /poi/trunk/src/java/org/apache/poi/hpsf/VariantSupport.java
Date Sun, 02 Oct 2011 08:36:51 GMT
Author: sergey
Date: Sun Oct  2 08:36:51 2011
New Revision: 1178147

URL: http://svn.apache.org/viewvc?rev=1178147&view=rev
Log:
fix VT_BOOL support

Modified:
    poi/trunk/src/java/org/apache/poi/hpsf/VariantSupport.java

Modified: poi/trunk/src/java/org/apache/poi/hpsf/VariantSupport.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hpsf/VariantSupport.java?rev=1178147&r1=1178146&r2=1178147&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hpsf/VariantSupport.java (original)
+++ poi/trunk/src/java/org/apache/poi/hpsf/VariantSupport.java Sun Oct  2 08:36:51 2011
@@ -476,12 +476,16 @@ public class VariantSupport extends Vari
         {
             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;
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message