I think the patch below fixes the error-in-minipage problem (I tested by copying an InsetError into a minipage then runnning delete all error boxes).
Michael, can you please test this ? thanks john Index: src/BufferView2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView2.C,v retrieving revision 1.95 diff -u -r1.95 BufferView2.C --- src/BufferView2.C 2001/10/01 15:31:57 1.95 +++ src/BufferView2.C 2001/11/22 17:06:21 @@ -102,23 +102,23 @@ bool BufferView::removeAutoInsets() { - Paragraph * par = buffer()->paragraph; - LyXCursor tmpcursor = text->cursor; LyXCursor cursor; - - bool a = false; + bool flag = false; + bool found = false; - while (par) { + ParIterator end = buffer()->par_iterator_end(); + for (ParIterator it = buffer()->par_iterator_begin(); + it != end; ++it) { + Paragraph * par = *it; // this has to be done before the delete text->setCursor(this, cursor, par, 0); - if (par->autoDeleteInsets()){ - a = true; + if (par->autoDeleteInsets()) { + found = true; text->redoParagraphs(this, cursor, cursor.par()->next()); text->fullRebreak(this); } - par = par->next(); } // avoid forbidden cursor positions caused by error removing @@ -127,7 +127,7 @@ text->setCursorIntern(this, tmpcursor.par(), tmpcursor.pos()); - return a; + return found; }