unoawt: StartDrag: do not release the mouse if DnD isn't enabled at all, this will confuse the SelectionEngine
This commit is contained in:
parent
757ea8f89a
commit
ab3f1411d1
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue