[Libreoffice-commits] .: src/pptstream.py

Tor Lillqvist tml at kemper.freedesktop.org
Thu May 3 04:40:34 PDT 2012


 src/pptstream.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 26802820dda81ffdd07fba03e259a271be7149d6
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Thu May 3 14:35:47 2012 +0300

    Print record type and instance in decimal, too
    
    Makes cross-referencing with the Microsoft PPT format specification
    easier, as that uses decimal for these.

diff --git a/src/pptstream.py b/src/pptstream.py
index 8e32501..4468e81 100644
--- a/src/pptstream.py
+++ b/src/pptstream.py
@@ -125,8 +125,8 @@ class PPTDirStream(object):
             self.__print("[%s]"%recData[recordType][0])
         else:
             self.__print("[anon record]")
-        self.__print("(type: %4.4Xh inst: %4.4Xh, vers: %4.4Xh, start: %d, size: %d)"%
-              (recordType, recordInstance, recordVersion, startPos, size))
+        self.__print("(type: %4.4Xh (%d) inst: %4.4Xh (%d), vers: %4.4Xh, start: %d, size: %d)"%
+              (recordType, recordType, recordInstance, recordInstance, recordVersion, startPos, size))
         self.__printSep('=')
 
 


More information about the Libreoffice-commits mailing list