SVN blames Jürgen for this code (rev 22325).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24879 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-22 10:44:28 +00:00
parent 5398dce8ae
commit 771e0ba1a3

View File

@ -3435,13 +3435,15 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
} }
case LFUN_PASTE: case LFUN_PASTE:
if (tabularStackDirty() && theClipboard().isInternal() || if (!tabularStackDirty()) {
cell(cur.idx())->dispatch(cur, cmd);
break;
}
if (theClipboard().isInternal() ||
!theClipboard().hasInternal() && theClipboard().hasLyXContents()) { !theClipboard().hasInternal() && theClipboard().hasLyXContents()) {
cur.recordUndoInset(INSERT_UNDO); cur.recordUndoInset(INSERT_UNDO);
pasteClipboard(cur); pasteClipboard(cur);
break;
} }
cell(cur.idx())->dispatch(cur, cmd);
break; break;
case LFUN_FONT_EMPH: case LFUN_FONT_EMPH: