add comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16856 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-01-25 21:02:08 +00:00
parent 3c1d5a48af
commit c68f3da771

View File

@ -426,6 +426,8 @@ bool Paragraph::Pimpl::isTextAt(string const & str, pos_type pos) const
// does the wanted text start at point? // does the wanted text start at point?
for (string::size_type i = 0; i < str.length(); ++i) { 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]) if (str[i] != owner_->text_[pos + i])
return false; return false;
} }