diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2010-11-23 14:11:06 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2010-11-23 14:11:06 (GMT) |
commit | 6722c9de1c10def1af7342b2096312cd22fe1da6 (patch) | |
tree | 225a9f0f81cc35a8e9eba28c39cac15e9e9e9864 | |
parent | 4a93e7dcc0381c83bd3bd710008153f6317dfd2d (diff) |
fix last patch OLPC #10442 - Add the option to export to PDF
The former patch does a wrong comparation, using a variable from master
Author: Simon Schampijer
-rw-r--r-- | toolbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,7 +94,7 @@ class WriteActivityToolbarExtension: fileObject.metadata['icon-color'] = act_meta['icon-color'] # don't set application if PDF because Write can't open PDF files - if format['mime_type'] != 'application/pdf': + if mimetype != 'application/pdf': fileObject.metadata['activity'] = act_meta['activity'] fileObject.metadata['keep'] = act_meta['keep'] |