mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Fix "Add better match" with only italic changed
This commit is contained in:
parent
ceb65be83b
commit
9f43472ac4
@ -380,9 +380,9 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
return;
|
||||
}
|
||||
|
||||
if (listBoxInspectItems.Items[listBoxInspectItems.SelectedIndex].ToString().Replace(" (italic)", string.Empty) == textBoxText.Text)
|
||||
if (listBoxInspectItems.Items[listBoxInspectItems.SelectedIndex].ToString() == textBoxText.Text + (checkBoxItalic.Checked ? " (italic)" : string.Empty))
|
||||
{
|
||||
// text not changed
|
||||
// text (or italic) not changed
|
||||
textBoxText.SelectAll();
|
||||
textBoxText.Focus();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user