From 101cabc35536a3915de6f3fd89a1823f31258bd5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 15 Mar 2011 13:36:48 +0000 Subject: [PATCH] thinko. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37936 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2