]> git.lyx.org Git - features.git/blobdiff - src/BufferView.cpp
Amend 635a7d77: Allow compiling with Qt6 with cmake
[features.git] / src / BufferView.cpp
index 4289e313bffc5e85c0d175cce9eab50b600a8cf2..79bf01f3ce49581027a1d6f6babd3734968e7f8a 100644 (file)
@@ -2264,6 +2264,13 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
        }
 
        case LFUN_COPY:
+               // With multi-cell table content, we pass down to the inset
+               if (cur.inTexted() && cur.selection()
+                   && cur.selectionBegin().idx() != cur.selectionEnd().idx()) {
+                       buffer_.dispatch(cmd, dr);
+                       dispatched = dr.dispatched();
+                       break;
+               }
                cap::copySelection(cur);
                cur.message(_("Copy"));
                break;