mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 05:40:59 +00:00
add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16856 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3c1d5a48af
commit
c68f3da771
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user