]> git.lyx.org Git - features.git/commitdiff
Workaround for #7987: deleted text in change-tracking mode is not found in Advanced...
authorTommaso Cucinotta <tommaso@lyx.org>
Fri, 28 Mar 2014 22:56:20 +0000 (22:56 +0000)
committerRichard Heck <rgheck@lyx.org>
Mon, 21 Apr 2014 15:51:59 +0000 (11:51 -0400)
src/lyxfind.cpp

index 1b32ae37c780b558778f7443bcbbb726641296ac..0c10e1980d840128db3ff15fb6a0eeba69f47080 100644 (file)
@@ -787,11 +787,11 @@ static docstring stringifySearchBuffer(Buffer & buffer, FindAndReplaceOptions co
                        Paragraph const & par = buffer.paragraphs().at(pit);
                        LYXERR(Debug::FIND, "Adding to search string: '"
                               << par.asString(pos_type(0), par.size(),
-                                              AS_STR_INSETS | AS_STR_PLAINTEXT,
+                                              AS_STR_INSETS | AS_STR_SKIPDELETE | AS_STR_PLAINTEXT,
                                               &runparams)
                               << "'");
                        str += par.asString(pos_type(0), par.size(),
-                                           AS_STR_INSETS | AS_STR_PLAINTEXT,
+                                           AS_STR_INSETS | AS_STR_SKIPDELETE | AS_STR_PLAINTEXT,
                                            &runparams);
                }
        }
@@ -1044,7 +1044,7 @@ docstring stringifyFromCursor(DocIterator const & cur, int len)
                LYXERR(Debug::FIND, "Stringifying with cur: "
                       << cur << ", from pos: " << cur.pos() << ", end: " << end);
                return par.asString(cur.pos(), end,
-                       AS_STR_INSETS | AS_STR_PLAINTEXT,
+                       AS_STR_INSETS | AS_STR_SKIPDELETE | AS_STR_PLAINTEXT,
                        &runparams);
        } else if (cur.inMathed()) {
                docstring s;