]> git.lyx.org Git - lyx.git/commitdiff
add comment
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 25 Jan 2007 21:02:08 +0000 (21:02 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 25 Jan 2007 21:02:08 +0000 (21:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16856 a592a061-630c-0410-9148-cb99ea01b6c8

src/paragraph_pimpl.C

index 42057a8a70acda91634e05c0912ba32dc6386771..1abb68321fd57ee6a6e8bec65a977eddb404bca6 100644 (file)
@@ -426,6 +426,8 @@ bool Paragraph::Pimpl::isTextAt(string const & str, pos_type pos) const
 
        // does the wanted text start at point?
        for (string::size_type i = 0; i < str.length(); ++i) {
+               // Caution: direct comparison of characters works only
+               // because str is pure ASCII.
                if (str[i] != owner_->text_[pos + i])
                        return false;
        }