Fixed newly introduced bug in EBU text reading (thx Iban)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@52 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-10-15 15:52:48 +00:00
parent 4f2106a740
commit 091b58f8f6

View File

@ -230,6 +230,8 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
sb.Append("</u>"); sb.Append("</u>");
else if (buffer[index + 16 + i] == TextFieldTerminator) else if (buffer[index + 16 + i] == TextFieldTerminator)
break; break;
else if (buffer[index + 16 + i] >= 0x20 && buffer[index + 16 + i] <= 0x7F)
sb.Append(encoding.GetString(buffer, index+16+i, 1));
else if (buffer[index + 16 + i] >= 0xA1) else if (buffer[index + 16 + i] >= 0xA1)
sb.Append(encoding.GetString(buffer, index+16+i, 1)); sb.Append(encoding.GetString(buffer, index+16+i, 1));
} }