mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1014103 (Error when converting any format to LRF)
This commit is contained in:
parent
c0589a92fd
commit
38248a9e40
@ -20,6 +20,11 @@ class LRFOptions(object):
|
|||||||
except:
|
except:
|
||||||
return ''
|
return ''
|
||||||
m = oeb.metadata
|
m = oeb.metadata
|
||||||
|
for x in ('left', 'top', 'right', 'bottom'):
|
||||||
|
attr = 'margin_'+x
|
||||||
|
val = getattr(opts, attr)
|
||||||
|
if val < 0:
|
||||||
|
setattr(opts, attr, 0)
|
||||||
self.title = None
|
self.title = None
|
||||||
self.author = self.publisher = _('Unknown')
|
self.author = self.publisher = _('Unknown')
|
||||||
self.title_sort = self.author_sort = ''
|
self.title_sort = self.author_sort = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user