]> git.lyx.org Git - lyx.git/commitdiff
fix crash with drag and drop
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 27 Feb 2004 14:21:00 +0000 (14:21 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 27 Feb 2004 14:21:00 +0000 (14:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8465 a592a061-630c-0410-9148-cb99ea01b6c8

po/POTFILES.in
src/BufferView_pimpl.C
src/ChangeLog

index 49d141d4848242dc3db71014524a3b3e069a1877..3a80162074dc83e7d9e34c1b022c8962d066d54f 100644 (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
index b64e9a0f92a74e38f2f264d7f59ea9d7ff51378e..4d7de765db712f2096372ed4eddc94cbbd93c4d4 100644 (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);
        }
index a6e59fd7b15995100c1d84a9cb4436d8f92b3f75..cfe044881b680f7594e1a5b7bf766f1bf020b6e4 100644 (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