From ff10e92b1b915f2ff36766599ec028bf5d3f3a86 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 May 2014 09:46:29 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/editor/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/text.py b/src/calibre/gui2/tweak_book/editor/text.py index dd6a4bcbf1..8eb17086cb 100644 --- a/src/calibre/gui2/tweak_book/editor/text.py +++ b/src/calibre/gui2/tweak_book/editor/text.py @@ -591,7 +591,7 @@ class TextEdit(PlainTextEdit): block = c.block() while block.isValid(): for r in block.layout().additionalFormats(): - if r.format.property(SPELL_PROPERTY).toBool() and self.text_for_range(block, r) == word: + if r.format.property(SPELL_PROPERTY) and self.text_for_range(block, r) == word: self.highlighter.reformat_block(block) break block = block.next()