mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
3596e02d6a
commit
dc4abad361
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user