From: Jean-Marc Lasgouttes Date: Fri, 27 Feb 2004 14:21:00 +0000 (+0000) Subject: fix crash with drag and drop X-Git-Tag: 1.6.10~15486 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c4bbb682aa0516be3758ef9f7895cc828199d5dc;p=lyx.git fix crash with drag and drop git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8465 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/po/POTFILES.in b/po/POTFILES.in index 49d141d484..3a80162074 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -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 diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index b64e9a0f92..4d7de765db 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -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); } diff --git a/src/ChangeLog b/src/ChangeLog index a6e59fd7b1..cfe044881b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-02-25 Jean-Marc Lasgouttes + + * BufferView_pimpl.C (workAreaDispatch): allow also + LFUN_FILE_OPEN, which is used by the drag-and-drop code. + 2004-02-27 Alfredo Braunstein * 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 * lyxfunc.[Ch]: rename view_status_message() to viewStatusMessage() @@ -62,7 +66,6 @@ * text2.C: * text3.C: adjust - 2004-02-16 Alfredo Braunstein * rowpainter.C (paintSelection): coord fix