[Libreoffice-commits] .: src/docrecord.py
Miklos Vajna
vmiklos at kemper.freedesktop.org
Wed Nov 28 09:40:50 PST 2012
src/docrecord.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5865fcf78400bb73d50626df558866af30649353
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Wed Nov 28 18:40:40 2012 +0100
Xst: don't assume we're inside Xstz
diff --git a/src/docrecord.py b/src/docrecord.py
index 6407e29..824738f 100755
--- a/src/docrecord.py
+++ b/src/docrecord.py
@@ -1517,8 +1517,8 @@ class Xst(DOCDirStream):
def dump(self):
print '<xst type="Xst" offset="%d">' % self.pos
self.printAndSet("cch", self.readuInt16())
- print '<rgtchar value="%s"/>' % self.getString()
- self.pos -= 2 # TODO this will break if not inside an Xstz, use self.cch instead
+ print '<rgtchar value="%s"/>' % globals.encodeName(self.bytes[self.pos:self.pos+2*self.cch].decode('utf-16'), lowOnly = True)
+ self.pos += 2*self.cch
print '</xst>'
class Xstz(DOCDirStream):
More information about the Libreoffice-commits
mailing list