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

Miklos Vajna vmiklos at collabora.co.uk
Tue Dec 8 04:50:17 PST 2015


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

New commits:
commit 972adfbe7e3d860a88622c67f075ce2e63c941b2
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Dec 8 13:49:57 2015 +0100

    docrecord: typo

diff --git a/msodumper/docrecord.py b/msodumper/docrecord.py
index 5f8dc21..d8aef44 100644
--- a/msodumper/docrecord.py
+++ b/msodumper/docrecord.py
@@ -4139,7 +4139,7 @@ class PBString(DOCDirStream):
         else:
             print '<%s type="PBString" index="%s">' % (self.name, self.index)
         buf = self.readuInt16()
-        self.printAndSet("cch", buf & 0x7fff)  # bits 0..15
+        self.printAndSet("cch", buf & 0x7fff)  # bits 1..15
         self.printAndSet("fAnsiString", self.getBit(buf, 15))
 
         bytes = []


More information about the Libreoffice-commits mailing list