Commit ac0d8af5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

document type should be computed based on source_format, not destination...

document type should be computed based on source_format, not destination format, otherwise there can be several possibilities.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42577 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 921ca3b3
......@@ -158,7 +158,7 @@ class OOHandler:
kw['source_format'] = self.source_format
if destination_format:
kw['destination_format'] = destination_format
kw['mimemapper'] = self._serializeMimemapper(destination_format)
kw['mimemapper'] = self._serializeMimemapper(self.source_format)
kw['refresh'] = json.dumps(self.refresh)
try:
stdout, stderr = self._callUnoConverter(*['convert'], **kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment