Removing dependency on longOperationCancelled() patch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37562 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2011-02-08 09:11:58 +00:00
parent 3596e02d6a
commit dc4abad361

View File

@ -1095,10 +1095,10 @@ int findForwardAdv(DocIterator & cur, MatchStringAdv & match)
{
if (!cur)
return 0;
while (!theApp()->longOperationCancelled() && cur) {
while (cur) {
LYXERR(Debug::FIND, "findForwardAdv() cur: " << cur);
if (match(cur, -1, false)) {
for (; !theApp()->longOperationCancelled() && cur; cur.forwardPos()) {
for (; cur; cur.forwardPos()) {
LYXERR(Debug::FIND, "Advancing cur: " << cur);
if (match(cur)) {
// Sometimes in finalize we understand it wasn't a match
@ -1193,7 +1193,7 @@ int findBackwardsAdv(DocIterator & cur, MatchStringAdv & match) {
else
cur.backwardPos();
pit_changed = true;
} while (!theApp()->longOperationCancelled());
} while (true);
return 0;
}