Fix crash with LFUN_PARAGRAPH_GOTO in embedded work area.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31427 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-09-21 08:21:37 +00:00
parent 57a531e970
commit 0edc2c8637

View File

@ -1256,6 +1256,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
}
case LFUN_PARAGRAPH_GOTO: {
if (buffer_.isInternal())
return false;
int const id = convert<int>(cmd.getArg(0));
int const pos = convert<int>(cmd.getArg(1));
int i = 0;