]> git.lyx.org Git - features.git/blobdiff - src/BufferView_pimpl.C
Implemented spellchecking inside insets. Small fixes. Baruchs fix.
[features.git] / src / BufferView_pimpl.C
index 45ec862af5433f26073b680f2fd869630097f006..e56cc687f07e66cf50a32d672f425a130ef9aa12 100644 (file)
@@ -1266,8 +1266,11 @@ void BufferView::Pimpl::hideCursor()
 
 void BufferView::Pimpl::toggleSelection(bool b)
 {
-       if (screen_.get())
+       if (screen_.get()) {
+               if (bv_->theLockingInset())
+                       bv_->theLockingInset()->toggleSelection(bv_, b);
                screen_->toggleSelection(bv_->text, bv_, b);
+       }
 }