]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Hyperlinks have to be escaped for XHTML output.
[lyx.git] / src / Paragraph.cpp
index 81deac4f393a180862e33f1d0a76661f671bf6eb..5f931f4d93401f2d91444a2714fb80b18834a0df 100644 (file)
@@ -3781,9 +3781,9 @@ void Paragraph::spellCheck() const
 bool Paragraph::isMisspelled(pos_type pos, bool check_boundary) const
 {
        bool result = SpellChecker::misspelled(d->speller_state_.getState(pos));
-       if (result || pos <= 0 || pos >= size())
+       if (result || pos <= 0 || pos > size())
                return result;
-       if (check_boundary && isWordSeparator(pos))
+       if (check_boundary && (pos == size() || isWordSeparator(pos)))
                result = SpellChecker::misspelled(d->speller_state_.getState(pos - 1));
        return result;
 }