[Libreoffice-commits] mso-dumper.git: msodumper/docrecord.py
Miklos Vajna
vmiklos at collabora.co.uk
Fri Dec 11 06:57:31 PST 2015
msodumper/docrecord.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
New commits:
commit 21e378e07c73d5edfcac26423e8bd9e0c0b0fe58
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Dec 11 11:54:53 2015 +0100
docrecord: show last CP in Plcffactoid
diff --git a/msodumper/docrecord.py b/msodumper/docrecord.py
index dbd50f0..9505843 100644
--- a/msodumper/docrecord.py
+++ b/msodumper/docrecord.py
@@ -245,17 +245,18 @@ class Plcffactoid(DOCDirStream, PLC):
def dump(self):
print '<plcffactoid type="Plcffactoid" offset="%d" size="%d bytes">' % (self.pos, self.size)
pos = self.pos
- for i in range(self.getElements()):
+ for i in range(self.getElements() + 1):
# aCp
aCp = self.getuInt32(pos=pos)
self.aCPs.append(aCp)
print '<aCP index="%d" value="%d">' % (i, aCp)
pos += 4
- # aFactoidSpls
- aFactoidSpls = FactoidSpls(self, self.getOffset(self.pos, i))
- aFactoidSpls.dump()
- self.aFactoidSpls.append(aFactoidSpls)
+ if i < self.getElements():
+ # aFactoidSpls
+ aFactoidSpls = FactoidSpls(self, self.getOffset(self.pos, i))
+ aFactoidSpls.dump()
+ self.aFactoidSpls.append(aFactoidSpls)
print '</aCP>'
print '</plcffactoid>'
More information about the Libreoffice-commits
mailing list