mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Edit book spell check: In the list of suggestions show the original word in italics. Fixes #1727827 [[Enhancement] spelling checker](https://bugs.launchpad.net/calibre/+bug/1727827)
This commit is contained in:
parent
43011b9a97
commit
d7359303fc
@ -1104,6 +1104,11 @@ class SpellCheck(Dialog):
|
|||||||
self.suggested_list.setCurrentItem(item)
|
self.suggested_list.setCurrentItem(item)
|
||||||
self.suggested_word.setText(s)
|
self.suggested_word.setText(s)
|
||||||
word_suggested = True
|
word_suggested = True
|
||||||
|
if s is current_word:
|
||||||
|
f = item.font()
|
||||||
|
f.setItalic(True)
|
||||||
|
item.setFont(f)
|
||||||
|
item.setToolTip(_('The original word'))
|
||||||
if not word_suggested:
|
if not word_suggested:
|
||||||
self.suggested_word.setText(current_word)
|
self.suggested_word.setText(current_word)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user