fix crash with drag and drop

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8465 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2004-02-27 14:21:00 +00:00
parent f3a750ab93
commit c4bbb682aa
3 changed files with 11 additions and 4 deletions

View File

@ -153,7 +153,6 @@ src/insets/insetfoot.C
src/insets/insetgraphics.C
src/insets/insetinclude.C
src/insets/insetindex.C
src/insets/insetlist.C
src/insets/insetmarginal.C
src/insets/insetnote.C
src/insets/insetoptarg.C

View File

@ -871,7 +871,8 @@ void BufferView::Pimpl::trackChanges()
bool BufferView::Pimpl::workAreaDispatch(FuncRequest const & cmd0)
{
//
// this is only called for mouse related events.
// this is only called for mouse related events (including
// LFUN_FILE_OPEN generated by drag-and-drop)
//
FuncRequest cmd = cmd0;
cmd.y += bv_->top_y();
@ -958,6 +959,10 @@ bool BufferView::Pimpl::workAreaDispatch(FuncRequest const & cmd0)
return true;
}
case LFUN_FILE_OPEN:
owner_->dispatch(cmd);
return true;
default:
BOOST_ASSERT(false);
}

View File

@ -1,3 +1,8 @@
2004-02-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* BufferView_pimpl.C (workAreaDispatch): allow also
LFUN_FILE_OPEN, which is used by the drag-and-drop code.
2004-02-27 Alfredo Braunstein <abraunst@lyx.org>
* text.C (rowBreakPoint): fix a bug showing with very large insets
@ -35,7 +40,6 @@
* text2.C:
* text3.C: streamlines the LyXText cursor movement handlers a bit.
2004-02-20 André Pönitz <poenitz@gmx.net>
* lyxfunc.[Ch]: rename view_status_message() to viewStatusMessage()
@ -62,7 +66,6 @@
* text2.C:
* text3.C: adjust
2004-02-16 Alfredo Braunstein <abraunst@lyx.org>
* rowpainter.C (paintSelection): coord fix