mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression that broke the compare books tool when used outside the book editor. Fixes #1321975 [Unhandled exception when comparing epub books](https://bugs.launchpad.net/calibre/+bug/1321975)
This commit is contained in:
parent
4322a406ee
commit
69ab170c19
@ -239,7 +239,7 @@ def process_text(state, text, nbsp_format, spell_format, user_data):
|
||||
if not ans:
|
||||
ans = [(len(text), fmt)]
|
||||
|
||||
if tprefs['inline_spell_check'] and state.tags and user_data.tag_ok_for_spell(state.tags[-1].name):
|
||||
if tprefs['inline_spell_check'] and state.tags and user_data.tag_ok_for_spell(state.tags[-1].name) and hasattr(dictionaries, 'active_user_dictionaries'):
|
||||
split_ans = []
|
||||
locale = state.current_lang or dictionaries.default_locale
|
||||
sfmt = SyntaxTextCharFormat(spell_format)
|
||||
|
Loading…
x
Reference in New Issue
Block a user