[Libreoffice-commits] mso-dumper.git: msodumper/wmfrecord.py
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 1 13:00:55 UTC 2021
msodumper/wmfrecord.py | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 49ac941aa0fa3413cf88931ffa325fccde9bd687
Author: Hossein <hossein at libreoffice.org>
AuthorDate: Fri Oct 1 14:54:10 2021 +0200
Commit: Hossein <hossein at libreoffice.org>
CommitDate: Fri Oct 1 15:00:36 2021 +0200
Add closing tag for SaveDC and RestoreDC
The closing tag for SaveDC and RestoreDC was missing. It is fixed
in this commit.
Change-Id: I334f32614e1b34a80556b93b71e1c33e83bb9082
Reviewed-on: https://gerrit.libreoffice.org/c/mso-dumper/+/122868
Tested-by: Hossein <hossein at libreoffice.org>
Reviewed-by: Hossein <hossein at libreoffice.org>
diff --git a/msodumper/wmfrecord.py b/msodumper/wmfrecord.py
index 6065163..e747b82 100644
--- a/msodumper/wmfrecord.py
+++ b/msodumper/wmfrecord.py
@@ -967,6 +967,7 @@ class RestoreDC(WMFRecord):
self.printAndSet("RecordSize", self.readuInt32(), hexdump=False)
self.printAndSet("RecordFunction", self.readuInt16(), hexdump=True)
self.printAndSet("nSavedDC", self.readInt16(), hexdump=False)
+ print('</%s>' % self.name)
# RecordSize is described in words, so we should double for bytes
assert self.pos == dataPos + self.RecordSize * 2
@@ -1444,6 +1445,7 @@ class SaveDC(WMFRecord):
print('<%s type="SaveDC">' % self.name)
self.printAndSet("RecordSize", self.readuInt32(), hexdump=False)
self.printAndSet("RecordFunction", self.readuInt16(), hexdump=True)
+ print('</%s>' % self.name)
# RecordSize is described in words, so we should double for bytes
assert self.pos == dataPos + self.RecordSize * 2
More information about the Libreoffice-commits
mailing list