summaryrefslogtreecommitdiff
path: root/oox/source/ole
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-14 20:46:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-14 21:28:08 +0100
commit54a6b3d7b24bb041f137015feb4e6a9a11891005 (patch)
treebb1e4b3383baede71a748c4efabd91889f7959f6 /oox/source/ole
parente8ba3d51609238c365ab471ee622513e8b30d721 (diff)
bool improvements
Change-Id: I89c35503d22797c5d5117e298f04e953de03044a
Diffstat (limited to 'oox/source/ole')
-rw-r--r--oox/source/ole/axbinarywriter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/ole/axbinarywriter.cxx b/oox/source/ole/axbinarywriter.cxx
index 3f71dc263387..a6408b279bb9 100644
--- a/oox/source/ole/axbinarywriter.cxx
+++ b/oox/source/ole/axbinarywriter.cxx
@@ -142,8 +142,8 @@ AxBinaryPropertyWriter::AxBinaryPropertyWriter( BinaryOutputStream& rOutStrm, bo
void AxBinaryPropertyWriter::writeBoolProperty( bool orbValue, bool bReverse )
{
- // orbValue ^ bReverse true then we want to set the bit, e.g. don't skip
- startNextProperty( !( ( orbValue ^ bReverse ) >= 1 ) );
+ // orbValue == bReverse false then we want to set the bit, e.g. don't skip
+ startNextProperty( orbValue == bReverse );
}
void AxBinaryPropertyWriter::writePairProperty( AxPairData& orPairData )