diff options
author | Joachim Lingner <jl@openoffice.org> | 2001-08-08 07:36:47 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2001-08-08 07:36:47 +0000 |
commit | be99e7efe404844737585f882343cfff4fce9426 (patch) | |
tree | 0bb582e4a6a16701d74b3d38ef52cd55618b7142 /dtrans/source/win32/dnd/target.cxx | |
parent | a697c30ad78c4f9aea7cec6b5d7704b58627db73 (diff) |
86173
Diffstat (limited to 'dtrans/source/win32/dnd/target.cxx')
-rw-r--r-- | dtrans/source/win32/dnd/target.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx index 090ebb07cbe2..6c9884354ab3 100644 --- a/dtrans/source/win32/dnd/target.cxx +++ b/dtrans/source/win32/dnd/target.cxx @@ -2,9 +2,9 @@ * * $RCSfile: target.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: jl $ $Date: 2001-07-26 11:28:05 $ + * last change: $Author: jl $ $Date: 2001-08-08 08:36:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -358,7 +358,7 @@ HRESULT DropTarget::DragEnter( IDataObject *pDataObj, // m_nLastDropAction has to be set by a listener. If no listener calls //XDropTargetDragContext::acceptDrag and specifies an action then pdwEffect // will be DROPEFFECT_NONE throughout - m_nLastDropAction= ACTION_DEFAULT; + m_nLastDropAction= ACTION_DEFAULT | ACTION_MOVE; m_currentDragContext= static_cast<XDropTargetDragContext*>( new TargetDragContext( static_cast<DropTarget*>(this) ) ); @@ -653,6 +653,8 @@ void DropTarget::_acceptDrag( sal_Int8 dragOperation, const Reference<XDropTarge if( context == m_currentDragContext) { m_nLastDropAction= dragOperation; + if( m_nLastDropAction == ACTION_MOVE) + m_nLastDropAction |= ACTION_DEFAULT; } } |