* src/insets/insettabular.C

(InsetTabular::doDispatch): Don't reset the table paste buffer
	when pasting from the external clipboard or selection, since no
	paste operation should ever change any clipboard.
	At the same time make the code more readable by removing the
	fall-through.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16492 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-01-04 09:48:54 +00:00
parent e873e7c0a9
commit c9bd56ab18

View File

@ -722,14 +722,9 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
bvcur.setCursor(cur);
break;
}
} else {
// so that the clipboard is used and it goes on
// to default
// and executes LFUN_PRIMARY_SELECTION_PASTE in insettext!
paste_tabular.reset();
dirtyTabularStack(false);
}
// fall through
// Let the cell handle normal text
cell(cur.idx())->dispatch(cur, cmd);
}
case LFUN_PASTE: