[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Mon Dec 19 12:00:08 UTC 2016


 vcl/source/control/edit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 68a1a7a05f05b69314c8fc5689a8c6d0c76e5681
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 19 11:15:06 2016 +0000

    Related: rhbz#1405521 abrt reported crash in dnd
    
    Change-Id: I8d8f9379d36dd3dd1a8973cd9f9c14860765630b
    Reviewed-on: https://gerrit.libreoffice.org/32174
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index f33c785..5edefc3 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2848,7 +2848,7 @@ void Edit::dragDropEnd( const css::datatransfer::dnd::DragSourceDropEvent& rDSDE
 {
     SolarMutexGuard aVclGuard;
 
-    if ( rDSDE.DropSuccess && ( rDSDE.DropAction & datatransfer::dnd::DNDConstants::ACTION_MOVE ) )
+    if (rDSDE.DropSuccess && (rDSDE.DropAction & datatransfer::dnd::DNDConstants::ACTION_MOVE) && mpDDInfo)
     {
         Selection aSel( mpDDInfo->aDndStartSel );
         if ( mpDDInfo->bDroppedInMe )


More information about the Libreoffice-commits mailing list