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

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Dec 28 21:40:16 PST 2014


 msodumper/formula.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 6ad04a4ce0d3024e9afc53b9351093e3b4ae366d
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Dec 29 06:39:45 2014 +0100

    improve formula support

diff --git a/msodumper/formula.py b/msodumper/formula.py
index 8ecece5..4827295 100644
--- a/msodumper/formula.py
+++ b/msodumper/formula.py
@@ -221,6 +221,9 @@ class PtgAtt(PtgBase):
             # PtgAttSemi: volatile
             self.attName = 'volatile'
             self.strm.readBytes(2) # ignore bytes
+        elif attType == 0x10:
+            self.attName = 'sum'
+            self.strm.readBytes(2) # ignore bytes
         else:
             raise FormulaParserError("unknown attribute token type (0x%2.2X)"%attType)
 


More information about the Libreoffice-commits mailing list