Bug fixed: Unexpected Hearing Impaired remove

This commit is contained in:
ivandrofly 2015-03-06 14:17:39 +00:00
parent f5e280222d
commit 943f5c6def

View File

@ -158,7 +158,6 @@ namespace Nikse.SubtitleEdit.Forms
public int RemoveTextFromHearImpaired()
{
_removeTextForHILib.Settings = GetSettings();
int count = 0;
for (int i = listViewFixes.Items.Count - 1; i >= 0; i--)
{
@ -166,10 +165,10 @@ namespace Nikse.SubtitleEdit.Forms
if (item.Checked)
{
Paragraph p = (Paragraph)item.Tag;
string newText = _removeTextForHILib.RemoveTextFromHearImpaired(p.Text);
string newText = columnHeaderAfter.Text;
if (string.IsNullOrEmpty(newText))
{
_subtitle.Paragraphs.RemoveAt(i);
_subtitle.Paragraphs.Remove(p);
}
else
{