summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org
diff options
context:
space:
mode:
authorDuong Nguyen <dnguyen>2008-03-05 00:26:55 +0000
committerDuong Nguyen <dnguyen>2008-03-05 00:26:55 +0000
commitae2e51b80b091c4e80ac5ac76a935d950c075a03 (patch)
treedc5dee82681fe1fcd3922f805d7c68e9c0093c13 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org
parentc350a7eb9c3c08f74a866125090e4096b6706dec (diff)
downloadeclipse.platform.swt-ae2e51b80b091c4e80ac5ac76a935d950c075a03.tar.gz
eclipse.platform.swt-ae2e51b80b091c4e80ac5ac76a935d950c075a03.tar.xz
eclipse.platform.swt-ae2e51b80b091c4e80ac5ac76a935d950c075a03.zip
- getItem sometimes different from HITTEST
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java
index a2cd97aedc..d02109dbc5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java
@@ -125,7 +125,7 @@ public class DropTargetEffect extends DropTargetAdapter {
while (item != null) {
Rectangle rect = item.getBounds();
int itemBottom = rect.y + rect.height;
- if (rect.y <= point.y && point.y <= itemBottom) return item;
+ if (rect.y <= point.y && point.y < itemBottom) return item;
if (itemBottom > treeBottom) break;
item = nextItem(tree, item);
}