void BufferView::Pimpl::selectionRequested()
{
+ if (!available())
+ return;
+
string const sel(bv_->getLyXText()->selectionAsString(bv_->buffer(),
false));
if (!sel.empty()) {
+2002-02-01 John Levon <moz@compsoc.man.ac.uk>
+
+ * BufferView_pimpl.C: fix crash on close buffer
+ during selection (#227)
+
2002-01-27 Herbert Voss <voss@lyx.org>
* buffer.C: link old Figure to new graphic inset
+2002-02-01 John Levon <moz@compsoc.man.ac.uk>
+
+ * ControlSpellchecker.C: clear any selection left
+ (bug #211)
+
2002-02-01 Herbert Voss <voss@lyx.org>
* ControlGraphics.[C] (readBB): search only, if it is a
#include "lyxrc.h"
#include "BufferView.h"
#include "LyXView.h"
+#include "lyxtext.h"
#include "gettext.h"
#include "support/lstrings.h"
#include "language.h"
result_ = SpellBase::ISP_OK;
stop_ = false;
+ // clear any old selection
+ LyXText * text = lv_.view()->getLyXText();
+ lv_.view()->toggleSelection(true);
+ lv_.view()->update(text, BufferView::SELECT);
+
while ((result_==SpellBase::ISP_OK || result_==SpellBase::ISP_IGNORE) &&
!stop_) {
word_ = lv_.view()->nextWord(newval_);