]> git.lyx.org Git - features.git/commitdiff
thinko.
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 15 Mar 2011 13:36:48 +0000 (13:36 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 15 Mar 2011 13:36:48 +0000 (13:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37936 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index b4a33fad047756fc0ed8cabb0577150d682b516e..582a39f1abb1d48f5ef2fd51b608be71431aab2e 100644 (file)
@@ -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;