]> git.lyx.org Git - features.git/blobdiff - src/BufferView_pimpl.C
two patches from john
[features.git] / src / BufferView_pimpl.C
index 843b8e72416ab06154956d8dd0e19ef256074723..b8cc2a399602e9d9110ff57171ba20df22682d84 100644 (file)
@@ -742,6 +742,9 @@ void BufferView::Pimpl::tripleClick(int /*x*/, int /*y*/, unsigned int button)
 
 void BufferView::Pimpl::selectionRequested()
 {
+       if (!available())
+               return;
        string const sel(bv_->getLyXText()->selectionAsString(bv_->buffer(),
                                                              false)); 
        if (!sel.empty()) {