Tweaks: Return if subtitle is empty.

This commit is contained in:
ivandrofly 2014-06-12 13:46:02 +01:00
parent 453d4dd802
commit dc5a479046

View File

@ -92,6 +92,11 @@ namespace Nikse.SubtitleEdit.Forms
private void AddWaterMark(Subtitle subtitle, string input)
{
if (subtitle == null || subtitle.Paragraphs.Count == 0)
{
return;
}
byte[] buffer = Encoding.ASCII.GetBytes(input);
if (radioButtonCurrentLine.Checked)