fix VT_BOOL support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178147 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
99ee1edb17
commit
03fac99902
@ -476,12 +476,16 @@ public class VariantSupport extends Variant
|
|||||||
{
|
{
|
||||||
case Variant.VT_BOOL:
|
case Variant.VT_BOOL:
|
||||||
{
|
{
|
||||||
short trueOrFalse;
|
|
||||||
if ( ( (Boolean) value ).booleanValue() )
|
if ( ( (Boolean) value ).booleanValue() )
|
||||||
trueOrFalse = (short) 0xFFFF;
|
{
|
||||||
|
out.write( 0xff );
|
||||||
|
out.write( 0xff );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
trueOrFalse = (short) 0x0000;
|
{
|
||||||
TypeWriter.writeUShortToStream( out, trueOrFalse );
|
out.write( 0x00 );
|
||||||
|
out.write( 0x00 );
|
||||||
|
}
|
||||||
length += 2;
|
length += 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user