From: Jürgen Spitzmüller Date: Tue, 15 Mar 2011 13:36:48 +0000 (+0000) Subject: thinko. X-Git-Tag: 2.0.0~515 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=101cabc35536a3915de6f3fd89a1823f31258bd5;p=features.git thinko. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37936 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index b4a33fad04..582a39f1ab 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -3343,11 +3343,11 @@ int Paragraph::find(docstring const & str, bool cs, bool mw, int const strsize = str.length(); int i = 0; pos_type const parsize = d->text_.size(); - odocstringstream os; for (i = 0; i < strsize && pos < parsize; ++i, ++pos) { // Ignore "invisible" letters such as ligature breaks // and hyphenation chars while searching while (pos < parsize - 1 && isInset(pos)) { + odocstringstream os; getInset(pos)->toString(os); if (!getInset(pos)->isLetter() || !os.str().empty()) break;