mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-28 06:37:07 -05:00
Fix regression causing failure when second line template is None
This commit is contained in:
parent
ee4d8d7127
commit
25e034a8c4
@ -1059,9 +1059,9 @@ class BookCase(QObject):
|
||||
if mdb is None or invalidate.is_set():
|
||||
return
|
||||
db = mdb.new_api
|
||||
spine_size_template = db.pref('bookshelf_spine_size_template', get_default_from_defaults=True)
|
||||
spine_size_template = db.pref('bookshelf_spine_size_template', get_default_from_defaults=True) or ''
|
||||
if gprefs['bookshelf_make_space_for_second_line']:
|
||||
author_template = db.pref('bookshelf_author_template', get_default_from_defaults=True)
|
||||
author_template = db.pref('bookshelf_author_template', get_default_from_defaults=True) or ''
|
||||
if author_template.strip():
|
||||
min_line_height *= 2
|
||||
template_cache = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user