diff options
author | Eike Rathke <erack@redhat.com> | 2014-03-18 23:36:39 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-03-18 23:56:45 +0100 |
commit | 35494ca3b3b5ec69322a0ecc29b676c89766f608 (patch) | |
tree | 9fd2f41fcc7292dcd393d010c150baf5186f4038 | |
parent | 2864bcdf49e916bd532c7ba0c4e678df9dc52e8f (diff) |
MS-XLS documentation uses big-endian bit diagrams
... so if it says leftmost bit 0 then test for high bit.
Change-Id: I260ff09fff66918da887742b5d177715e59548c2
-rw-r--r-- | sc/source/filter/excel/excimp8.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx index 84174b1b6e10..c5008efae94a 100644 --- a/sc/source/filter/excel/excimp8.cxx +++ b/sc/source/filter/excel/excimp8.cxx @@ -367,7 +367,7 @@ void ImportExcel8::Feat( void ) aProt.mnAreserved = aIn.ReaduInt32(); aProt.mnPasswordVerifier = aIn.ReaduInt32(); aProt.maTitle = aIn.ReadUniString(); - if ((aProt.mnAreserved & 1) == 1) + if ((aProt.mnAreserved & 0x80000000) == 0x80000000) { sal_uInt32 nCbSD = aIn.ReaduInt32(); // TODO: could here be some sanity check applied to not allocate 4GB? |