From 5a1d3fa168aa9771653ca26fcbb62ef9d8015a27 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Sep 2017 07:43:25 +0530 Subject: [PATCH] Forgot to add preserve cover aspect ratio option to GUI. Fixes #1719026 ["Preserve the cover aspect ratio" for DOCX output NOT present in 3.8](https://bugs.launchpad.net/calibre/+bug/1719026) --- src/calibre/gui2/convert/docx_output.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/convert/docx_output.py b/src/calibre/gui2/convert/docx_output.py index 4c2936196a..07d20615a5 100644 --- a/src/calibre/gui2/convert/docx_output.py +++ b/src/calibre/gui2/convert/docx_output.py @@ -23,7 +23,7 @@ class PluginWidget(Widget): Widget.__init__(self, parent, [ 'docx_page_size', 'docx_custom_page_size', 'docx_no_cover', 'docx_no_toc', 'docx_page_margin_left', 'docx_page_margin_top', 'docx_page_margin_right', - 'docx_page_margin_bottom', + 'docx_page_margin_bottom', 'preserve_cover_aspect_ratio', ]) for x in get_option('docx_page_size').option.choices: self.opt_docx_page_size.addItem(x) @@ -48,3 +48,5 @@ class PluginWidget(Widget): l.addRow(self.opt_docx_no_toc) self.opt_docx_no_cover = QCheckBox(_('Do not insert &cover as image at start of document')) l.addRow(self.opt_docx_no_cover) + self.opt_preserve_cover_aspect_ratio = QCheckBox(_('Preserve the aspect ratio of the image inserted as cover')) + l.addRow(self.opt_preserve_cover_aspect_ratio)