[Libreoffice-commits] mso-dumper.git: msodumper/xlsrecord.py

Eike Rathke erack at redhat.com
Tue Mar 18 15:34:30 PDT 2014


 msodumper/xlsrecord.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e0c64ff72711d7861362507870076dd4c49fa9b9
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Mar 18 23:33:10 2014 +0100

    MS-XLS documentation uses big-endian bit diagrams
    
    ... so if it says leftmost bit 0 then test for hight bit.

diff --git a/msodumper/xlsrecord.py b/msodumper/xlsrecord.py
index e908067..e56602b 100644
--- a/msodumper/xlsrecord.py
+++ b/msodumper/xlsrecord.py
@@ -2741,7 +2741,7 @@ class FeatureData(BaseRecordHandler):
             wPassword = self.readUnsignedInt(4)
             stTitle = self.readXLUnicodeString()
             self.appendLine("stTitle: %s"%stTitle)
-            if Areserved & 1 == 1:
+            if Areserved & 0x70000000 == 0x70000000:
                 # SDContainer
                 cbSD = self.readUnsignedInt(4)
                 self.appendLine("cbSD: %d"%cbSD)


More information about the Libreoffice-commits mailing list