[ooo-build-commit] scratch/mso-dumper
Kohei Yoshida
kohei at kemper.freedesktop.org
Thu Dec 17 15:16:09 PST 2009
scratch/mso-dumper/src/xlsrecord.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit c5c9e326f790c3527c0bbac4579c4e64764e59c7
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Wed Dec 16 20:36:12 2009 -0500
[xls-dump] ROW record stores unsigned row ID, not signed one.
* scratch/mso-dumper/src/xlsrecord.py: handle row and column IDs
stored in the ROW records as unsigned integer.
diff --git a/scratch/mso-dumper/src/xlsrecord.py b/scratch/mso-dumper/src/xlsrecord.py
index 9e224aa..ffebc0a 100644
--- a/scratch/mso-dumper/src/xlsrecord.py
+++ b/scratch/mso-dumper/src/xlsrecord.py
@@ -582,11 +582,11 @@ class ColInfo(BaseRecordHandler):
class Row(BaseRecordHandler):
def parseBytes (self):
- row = self.readSignedInt(2)
- col1 = self.readSignedInt(2)
- col2 = self.readSignedInt(2)
+ row = self.readUnsignedInt(2)
+ col1 = self.readUnsignedInt(2)
+ col2 = self.readUnsignedInt(2)
- rowHeightBits = self.readSignedInt(2)
+ rowHeightBits = self.readUnsignedInt(2)
rowHeight = (rowHeightBits & 0x7FFF)
defaultHeight = ((rowHeightBits & 0x8000) == 1)
More information about the ooo-build-commit
mailing list