From c68f3da771a54ef78bd309b8f1a81c374d2fea4c Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 25 Jan 2007 21:02:08 +0000 Subject: [PATCH] add comment git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16856 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/paragraph_pimpl.C | 2 ++ 1 file changed, 2 insertions(+) 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; }