summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java
index 400df25b27..cb1f7e55cb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDropTargetEffect.java
@@ -54,7 +54,6 @@ public class TreeDropTargetEffect extends DropTargetEffect {
static final int EXPAND_HYSTERESIS = 1000; // milli seconds
int currentEffect = DND.FEEDBACK_NONE;
- TreeItem currentItem;
TreeItem insertItem = null;
boolean insertBefore = false;
@@ -242,12 +241,12 @@ public class TreeDropTargetEffect extends DropTargetEffect {
if ((effect & DND.FEEDBACK_INSERT_AFTER) != 0 ||
(effect & DND.FEEDBACK_INSERT_BEFORE) != 0) {
- if (currentItem != item ||
+ if (insertItem != item ||
((effect & DND.FEEDBACK_INSERT_AFTER) != (currentEffect & DND.FEEDBACK_INSERT_AFTER)) ||
((effect & DND.FEEDBACK_INSERT_BEFORE) != (currentEffect & DND.FEEDBACK_INSERT_BEFORE))) {
setInsertMark(tree, item, (effect & DND.FEEDBACK_INSERT_BEFORE) != 0);
currentEffect = effect;
- currentItem = item;
+ insertItem = item;
}
} else {
setInsertMark(tree, null, false);