]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
This patch prevents the shortcut dialog from silently over-writing existing bindings...
[lyx.git] / src / CutAndPaste.cpp
index 901b7d7f4a6abafe0d4bcd587e91c64884f10506..80be34ad3db74f4a2733bafaefb8cc6d91caafd2 100644 (file)
@@ -97,6 +97,10 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
        pit_type pit = cur.pit();
        pos_type pos = cur.pos();
        InsetText * target_inset = cur.inset().asInsetText();
+       if (!target_inset) {
+               InsetTabular * it = cur.inset().asInsetTabular();
+               target_inset = it? it->cell(cur.idx())->asInsetText() : 0;
+       }
        LASSERT(target_inset, return make_pair(PitPosPair(pit, pos), pit));
        ParagraphList & pars = target_inset->paragraphs();