Improve performance

This commit is contained in:
Tim Bentley 2016-05-21 20:01:50 +01:00
parent af36dc4c41
commit 6d3ad3af3f
1 changed files with 1 additions and 1 deletions

View File

@ -142,8 +142,8 @@ class SpellTextEdit(QtWidgets.QPlainTextEdit):
""" """
Replaces the selected text with word. Replaces the selected text with word.
""" """
for html in FormattingTags.get_html_tags():
tag = tag.replace('&', '') tag = tag.replace('&', '')
for html in FormattingTags.get_html_tags():
if tag == html['desc']: if tag == html['desc']:
cursor = self.textCursor() cursor = self.textCursor()
if self.textCursor().hasSelection(): if self.textCursor().hasSelection():