From 3e89afb8d56ea987ff8e044320f7c0301006099b Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 1 Aug 2008 07:56:43 +0000 Subject: INTEGRATION: CWS vcl30stop1 (1.4.4); FILE MERGED 2008/07/22 14:54:28 pl 1.4.4.1: #i90747# more consistent Drop operations inside OOo --- dtrans/source/aqua/DropTarget.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'dtrans') diff --git a/dtrans/source/aqua/DropTarget.cxx b/dtrans/source/aqua/DropTarget.cxx index 5400b1a9757e..8cec3daf7a2d 100644 --- a/dtrans/source/aqua/DropTarget.cxx +++ b/dtrans/source/aqua/DropTarget.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DropTarget.cxx,v $ - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -205,13 +205,7 @@ sal_Int8 DropTarget::determineDropAction(sal_Int8 dropActions, id sender) const { if (srcAndDestEqual) { - if ((dropActions & DNDConstants::ACTION_MOVE) || - (dropActions & DNDConstants::ACTION_DEFAULT)) - dropAct = DNDConstants::ACTION_MOVE; - else if (dropActions & DNDConstants::ACTION_COPY) - dropAct = DNDConstants::ACTION_COPY; - else if (dropActions & DNDConstants::ACTION_LINK) - dropAct = DNDConstants::ACTION_LINK; + dropAct = dropActions; } else // source and destination are different { -- cgit