From: Georg Baum Date: Thu, 25 Jan 2007 21:02:08 +0000 (+0000) Subject: add comment X-Git-Tag: 1.6.10~11063 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c68f3da771a54ef78bd309b8f1a81c374d2fea4c;p=lyx.git add comment git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16856 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/paragraph_pimpl.C b/src/paragraph_pimpl.C index 42057a8a70..1abb68321f 100644 --- a/src/paragraph_pimpl.C +++ b/src/paragraph_pimpl.C @@ -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; }