Spellcheck of one word letters is now an option in Settings.xml

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@848 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-12-18 19:22:03 +00:00
parent 7040e87758
commit 0b3fa60d08

View File

@ -501,7 +501,11 @@ namespace Nikse.SubtitleEdit.Forms
}
}
if (_currentWord.Trim().Length > 0 &&
int minLength = 2;
if (Configuration.Settings.Tools.SpellCheckOneLetterWords)
minLength = 1;
if (_currentWord.Trim().Length >= minLength &&
!_currentWord.Contains("0") &&
!_currentWord.Contains("1") &&
!_currentWord.Contains("2") &&