mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
parent
cf1c506d64
commit
302796ade1
@ -4984,11 +4984,10 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
if (!tabularStackDirty()) {
|
if (!tabularStackDirty()) {
|
||||||
// Check if we have plain text or HTML with rows/columns.
|
// Check if we have plain text or HTML with rows/columns.
|
||||||
// and if so, pass over to LFUN_CLIPBOARD_PASTE
|
// and if so, pass over to LFUN_CLIPBOARD_PASTE
|
||||||
if (!theClipboard().hasGraphicsContents()
|
if (theClipboard().hasTextContents(Clipboard::AnyTextType)
|
||||||
&& theClipboard().hasTextContents(Clipboard::AnyTextType)
|
|
||||||
&& !theClipboard().hasTextContents(Clipboard::LyXTextType)) {
|
&& !theClipboard().hasTextContents(Clipboard::LyXTextType)) {
|
||||||
docstring const clip =
|
docstring const clip =
|
||||||
theClipboard().getAsText(Clipboard::PlainTextType);
|
theClipboard().getAsText(Clipboard::AnyTextType);
|
||||||
if (clip.find_first_of(from_ascii("\t\n")) != docstring::npos) {
|
if (clip.find_first_of(from_ascii("\t\n")) != docstring::npos) {
|
||||||
FuncRequest ncmd = FuncRequest(LFUN_CLIPBOARD_PASTE, cmd.argument());
|
FuncRequest ncmd = FuncRequest(LFUN_CLIPBOARD_PASTE, cmd.argument());
|
||||||
doDispatch(cur, ncmd);
|
doDispatch(cur, ncmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user