On Wed, Jan 09, 2002 at 12:02:12PM +1000, Allan Rae wrote:

> > any chance deleteEmptyPara might have been run during/just before your view->dvi ?
> 
> Yeah, I had a blank line with the cursor on it at the end of the file.

here's an obviously silly fix for the bug in the hope that someone will
fix it properly as a result soon.

Index: BufferView2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView2.C,v
retrieving revision 1.107
diff -u -p -r1.107 BufferView2.C
--- BufferView2.C       2002/01/06 19:34:29     1.107
+++ BufferView2.C       2002/01/09 02:16:14
@@ -141,6 +141,8 @@ bool BufferView::removeAutoInsets()
                if (removed) {
                        found = true;
                        text->redoParagraph(this);
+                       // delete empty para might have hit us
+                       it = buffer()->par_iterator_begin();
                }
        }

regards
john

-- 
"I went to set up a Yahoo ID for my dog. (Don't ask, but the DOG'S email was 
cluttering my inbox)." 
        - Ruthless Advisorette

Reply via email to