This commit is contained in:
Kovid Goyal 2014-05-15 09:46:29 +05:30
parent 6ee7e7af46
commit ff10e92b1b

View File

@ -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()