Minor improvements to "Fix common errors" - thx Majid :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@953 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2012-01-27 15:53:17 +00:00
parent b819a4c740
commit c674c9104b
2 changed files with 2 additions and 2 deletions

View File

@ -2240,7 +2240,7 @@ namespace Nikse.SubtitleEdit.Forms
{
bool fix = true;
if (prev == ".")
if (prev == "." || prev == "'")
fix = false;
if (fix)

View File

@ -1121,7 +1121,7 @@ namespace Nikse.SubtitleEdit.Logic.OCR
List<string> localIgnoreWords = new List<string>();
wordsNotFound = 0;
if (line.Length == 1 && !IsWordKnownOrNumber(line, line))
if (promptForFixingErrors && line.Length == 1 && !IsWordKnownOrNumber(line, line))
{
SpellcheckOcrTextResult res = SpellcheckOcrText(line, bitmap, new string[1] { line}, 0, line, localIgnoreWords);
if (res.FixedWholeLine || res.Fixed)