mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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)
This commit is contained in:
parent
60fb6b96fb
commit
5a1d3fa168
@ -23,7 +23,7 @@ class PluginWidget(Widget):
|
|||||||
Widget.__init__(self, parent, [
|
Widget.__init__(self, parent, [
|
||||||
'docx_page_size', 'docx_custom_page_size', 'docx_no_cover', 'docx_no_toc',
|
'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_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:
|
for x in get_option('docx_page_size').option.choices:
|
||||||
self.opt_docx_page_size.addItem(x)
|
self.opt_docx_page_size.addItem(x)
|
||||||
@ -48,3 +48,5 @@ class PluginWidget(Widget):
|
|||||||
l.addRow(self.opt_docx_no_toc)
|
l.addRow(self.opt_docx_no_toc)
|
||||||
self.opt_docx_no_cover = QCheckBox(_('Do not insert &cover as image at start of document'))
|
self.opt_docx_no_cover = QCheckBox(_('Do not insert &cover as image at start of document'))
|
||||||
l.addRow(self.opt_docx_no_cover)
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user