diff --git a/src/Forms/Ocr/VobSubOcr.cs b/src/Forms/Ocr/VobSubOcr.cs index efeb2b3f6..6eaf1d80e 100644 --- a/src/Forms/Ocr/VobSubOcr.cs +++ b/src/Forms/Ocr/VobSubOcr.cs @@ -4335,7 +4335,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr if (match == null) { int nextIndex = index + 1; - var allowExpand = nextIndex < list.Count && list[nextIndex].SpecialCharacter != Environment.NewLine; + var allowExpand = nextIndex < list.Count && (list[nextIndex].SpecialCharacter != Environment.NewLine && list[nextIndex].SpecialCharacter != " "); _vobSubOcrCharacter.Initialize(bitmap, item, _manualOcrDialogPosition, _italicCheckedLast, false, bestGuess, _lastAdditions, this, allowExpand); DialogResult result = _vobSubOcrCharacter.ShowDialog(this); diff --git a/src/Forms/Ocr/VobSubOcrCharacter.cs b/src/Forms/Ocr/VobSubOcrCharacter.cs index e1f0c9481..e771ba528 100644 --- a/src/Forms/Ocr/VobSubOcrCharacter.cs +++ b/src/Forms/Ocr/VobSubOcrCharacter.cs @@ -134,10 +134,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr pictureBoxCharacter.Top = labelCharacters.Top + 16; pictureBoxLastEdit.Left = buttonLastEdit.Left + buttonLastEdit.Width + 5; - if (!allowExpand) - { - buttonExpandSelection.Visible = false; - } + buttonExpandSelection.Visible = allowExpand; } private void ButtonOkClick(object sender, EventArgs e)