unoawt: StartDrag: do not release the mouse if DnD isn't enabled at all, this will confuse the SelectionEngine

This commit is contained in:
Frank Schoenheit [fs] 2010-06-01 13:53:53 +02:00
parent 757ea8f89a
commit ab3f1411d1

View file

@ -1775,10 +1775,14 @@ void SvLBox::StartDrag( sal_Int8, const Point& rPosPixel )
{
DBG_CHKTHIS(SvLBox,0);
ReleaseMouse();
SvLBoxEntry* pEntry = GetEntry( rPosPixel ); // GetDropTarget( rPos );
nOldDragMode = GetDragDropMode();
if( !pEntry || !nOldDragMode )
if ( !nOldDragMode )
return;
ReleaseMouse();
SvLBoxEntry* pEntry = GetEntry( rPosPixel ); // GetDropTarget( rPos );
if( !pEntry )
{
DragFinished( DND_ACTION_NONE );
return;