+/**
+ * \file lyxfind.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author John Levon
+ * \author Jürgen Vigna
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
#include <config.h>
#include "lyxtext.h"
string str2;
if (casesens) {
str1 = searchstr;
- str2 = text->selectionAsString(bv->buffer(), false);
+ str2 = text->selectionAsString(*bv->buffer(), false);
} else {
str1 = lowercase(searchstr);
- str2 = lowercase(text->selectionAsString(bv->buffer(), false));
+ str2 = lowercase(text->selectionAsString(*bv->buffer(), false));
}
if (str1 != str2) {
if (!find(bv, searchstr, fw, casesens, matchwrd) ||
// FIXME: should be called via an LFUN
bv->buffer()->markDirty();
- bv->fitCursor();
bv->update();
return replace_count;
bv->unlockInset(bv->theLockingInset());
found = false;
}
- bv->fitCursor();
bv->update();
return found;
found = false;
}
- bv->fitCursor();
bv->update();
return found;