Commit f719d8d1 authored by neil%parkwaycc.co.uk's avatar neil%parkwaycc.co.uk
Browse files

Disabling the spell checker is not an error b=296265 r+sr=mscott a=asa

parent 2393f6c2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -209,8 +209,11 @@ NS_IMETHODIMP mozInlineSpellChecker::SpellCheckAfterEditorChange(PRInt32 action,
                                                                 PRInt32 aEndOffset)
{
  NS_ENSURE_ARG_POINTER(aSelection);
  if (!mSpellCheck)
    return NS_OK; // disabling spell checking is not an error

  nsCOMPtr<nsIEditor> editor (do_QueryReferent(mEditor));
  if (!mSpellCheck || !editor) 
  if (!editor) 
    return NS_ERROR_NOT_INITIALIZED;

  nsCOMPtr<nsIDOMNode> anchorNode;