Fixed possible crash in spell check - thx Andrew :)

This commit is contained in:
Nikolaj Olsson 2016-04-23 11:33:50 +02:00
parent 5ae46fcf99
commit 31ecf2dda1
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
* Fixed some "Remove text for HI" issues - thx Thunderbolt8
* Fixed "Remove text for HI" issue - thx Andrew
* Fixed "Add missing spaces" issue - thx Andrew
* Fixed possible crash in spell check - thx Andrew
* "Fix short display time" is improved even if chars/sec still high - thx Frédéric
* Fixed possible crash when loading subtitle from command line - thx Félix
* Fixed showing correct language when opening dvd multi lang sub - thx xylographe

View File

@ -528,7 +528,7 @@ namespace Nikse.SubtitleEdit.Forms
else if (_changeAllDictionary.ContainsKey(_currentWord.Trim('\'')))
{
_noOfChangedWords++;
_mainWindow.CorrectWord(_changeAllDictionary[_currentWord], _currentParagraph, _currentWord.Trim('\''), ref _firstChange, -1);
_mainWindow.CorrectWord(_changeAllDictionary[_currentWord.Trim('\'')], _currentParagraph, _currentWord.Trim('\''), ref _firstChange, -1);
}
else if (_spellCheckWordLists.HasNameExtended(_currentWord, _currentParagraph.Text)) // TODO: Verify this!
{