Merge pull request #1538 from ivandrofly/refact-FDGT

[refact] - remove duplicated code
This commit is contained in:
Nikolaj Olsson 2016-02-06 07:13:42 +01:00
commit afda01f690

View File

@ -21,12 +21,6 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
if (!text.Contains(Environment.NewLine))
{
text = Helper.FixDoubleGreaterThanHelper(text);
if (oldText != text)
{
fixCount++;
p.Text = text;
callbacks.AddFixToListView(p, fixAction, oldText, text);
}
}
else
{
@ -36,6 +30,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
lines[k] = Helper.FixDoubleGreaterThanHelper(lines[k]);
}
text = string.Join(Environment.NewLine, lines);
}
if (oldText != text)
{
fixCount++;
@ -44,7 +39,6 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
}
}
}
}
callbacks.UpdateFixStatus(fixCount, language.FixDoubleGreaterThan, language.XFixDoubleGreaterThan);
}