mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
parent
c9432ccbbc
commit
cf1c506d64
@ -4982,6 +4982,19 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
|
||||
case LFUN_PASTE:
|
||||
if (!tabularStackDirty()) {
|
||||
// Check if we have plain text or HTML with rows/columns.
|
||||
// and if so, pass over to LFUN_CLIPBOARD_PASTE
|
||||
if (!theClipboard().hasGraphicsContents()
|
||||
&& theClipboard().hasTextContents(Clipboard::AnyTextType)
|
||||
&& !theClipboard().hasTextContents(Clipboard::LyXTextType)) {
|
||||
docstring const clip =
|
||||
theClipboard().getAsText(Clipboard::PlainTextType);
|
||||
if (clip.find_first_of(from_ascii("\t\n")) != docstring::npos) {
|
||||
FuncRequest ncmd = FuncRequest(LFUN_CLIPBOARD_PASTE, cmd.argument());
|
||||
doDispatch(cur, ncmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!cur.selIsMultiCell())
|
||||
cell(cur.idx())->dispatch(cur, cmd);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user