please apply

thanks
john

-- 
"This is mindless pedantism up with which I will not put."
        - Donald Knuth on Pascal's lack of default: case statement
Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.547
diff -u -r1.547 ChangeLog
--- src/ChangeLog       2002/01/29 09:26:22     1.547
+++ src/ChangeLog       2002/02/01 13:44:31
@@ -1,3 +1,8 @@
+2002-02-01  John Levon  <[EMAIL PROTECTED]>
+
+       * BufferView_pimpl.C: fix crash on close buffer 
+       during selection (#227)
+ 
 2002-01-27  Herbert Voss  <[EMAIL PROTECTED]>
 
        * buffer.C: link old Figure to new graphic inset
Index: src/BufferView_pimpl.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v
retrieving revision 1.197
diff -u -r1.197 BufferView_pimpl.C
--- src/BufferView_pimpl.C      2002/01/21 12:16:56     1.197
+++ src/BufferView_pimpl.C      2002/02/01 13:44:34
@@ -742,6 +742,9 @@
 
 void BufferView::Pimpl::selectionRequested()
 {
+       if (!available())
+               return;
+ 
        string const sel(bv_->getLyXText()->selectionAsString(bv_->buffer(),
                                                              false)); 
        if (!sel.empty()) {

Reply via email to