mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Fix copy of multi-cells in table (#12196)
This commit is contained in:
parent
ac8948b8e0
commit
ae892bff98
@ -2264,6 +2264,13 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_COPY:
|
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);
|
cap::copySelection(cur);
|
||||||
cur.message(_("Copy"));
|
cur.message(_("Copy"));
|
||||||
break;
|
break;
|
||||||
|
@ -5262,6 +5262,13 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case LFUN_COPY:
|
||||||
|
if (cur.selIsMultiCell())
|
||||||
|
copySelection(cur);
|
||||||
|
else
|
||||||
|
cell(cur.idx())->dispatch(cur, cmd);
|
||||||
|
break;
|
||||||
|
|
||||||
case LFUN_CUT:
|
case LFUN_CUT:
|
||||||
if (cur.selIsMultiCell()) {
|
if (cur.selIsMultiCell()) {
|
||||||
if (copySelection(cur)) {
|
if (copySelection(cur)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user