From 091b58f8f6fcb1e49d740ae18ccc5a4e7146bdd4 Mon Sep 17 00:00:00 2001 From: niksedk Date: Fri, 15 Oct 2010 15:52:48 +0000 Subject: [PATCH] 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 --- src/Logic/SubtitleFormats/Ebu.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Logic/SubtitleFormats/Ebu.cs b/src/Logic/SubtitleFormats/Ebu.cs index 9cbd7811d..ceec50391 100644 --- a/src/Logic/SubtitleFormats/Ebu.cs +++ b/src/Logic/SubtitleFormats/Ebu.cs @@ -230,6 +230,8 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats sb.Append(""); else if (buffer[index + 16 + i] == TextFieldTerminator) 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) sb.Append(encoding.GetString(buffer, index+16+i, 1)); }