mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
fix crash entering smiley<space><space> on unix, sr=mscott, 328606
This commit is contained in:
parent
ca55a8b0cd
commit
1a3de1c754
@ -927,7 +927,7 @@ mozInlineSpellChecker::AdjustSpellHighlighting(nsIDOMNode *aNode,
|
||||
rv = GenerateRangeForSurroundingWord(currentNode, aOffset, getter_AddRefs(wordRange));
|
||||
|
||||
// if we don't have a word range to examine, then bail out early.
|
||||
if (!wordRange)
|
||||
if (!wordRange || aOffset < 0)
|
||||
return NS_OK;
|
||||
|
||||
// if the user just started typing inside of an existing word, remove that word from the spell check
|
||||
|
Loading…
Reference in New Issue
Block a user