From 0b3fa60d08c7802878dd1f0498c47e4f4691992c Mon Sep 17 00:00:00 2001 From: niksedk Date: Sun, 18 Dec 2011 19:22:03 +0000 Subject: [PATCH] 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 --- src/Forms/SpellCheck.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Forms/SpellCheck.cs b/src/Forms/SpellCheck.cs index 2cb630231..15f1728f6 100644 --- a/src/Forms/SpellCheck.cs +++ b/src/Forms/SpellCheck.cs @@ -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") &&