From ee9699ce3979cf4ce0a8fb364877d0eaf68760c9 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Thu, 15 Dec 2011 22:06:04 +0000 Subject: [PATCH] Backport fix for 7945. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40503 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/doc/LFUNs.lyx | 2 +- src/BufferView.cpp | 2 +- src/LyXAction.cpp | 2 +- status.20x | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/doc/LFUNs.lyx b/lib/doc/LFUNs.lyx index a41ac32a9a..55bbc48329 100644 --- a/lib/doc/LFUNs.lyx +++ b/lib/doc/LFUNs.lyx @@ -4689,7 +4689,7 @@ Notion WARNING: use at your own risks; this function gives you too many A typical example is inset-forall Note note-insert which starts an infinite loop. This is mitigated by the fact that the number of actions is arbitrarily - limited to 10000. + limited to 100000. Note also that inset-forall does not update metrics between iterations, which can lead to bugs. This has to be eventually fixed. diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 97c9f20e58..e637dee19d 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1764,7 +1764,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) FuncRequest const fr = lyxaction.lookupFunc(commandstr); // an arbitrary number to limit number of iterations - const int max_iter = 10000; + const int max_iter = 100000; int iterations = 0; Cursor & cur = d->cursor_; Cursor const savecur = cur; diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index f9ee2f8730..a58fc5e341 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -2397,7 +2397,7 @@ void LyXAction::init() A typical example is inset-forall Note note-insert which starts an infinite loop. This is mitigated by the fact - that the number of actions is arbitrarily limited to 10000. + that the number of actions is arbitrarily limited to 100000. Note also that inset-forall does not update metrics between iterations, which can lead to bugs. This has to be eventually fixed. diff --git a/status.20x b/status.20x index b9808a3b0d..7c06a3aead 100644 --- a/status.20x +++ b/status.20x @@ -47,6 +47,8 @@ What's new - Slightly reduced space around inset buttons, to make it clearer when there is a real space there (bug 7256). +- Let inset-toggle work for very large documents (bug 7945). + * DOCUMENTATION AND LOCALIZATION