6716137: Fix 6691328 is broken
authordav
Wed, 18 Jun 2008 19:20:28 +0400
changeset 1173 96c2af2cb574
parent 1171 a2782dd9f312
child 1174 8defdb35db9f
6716137: Fix 6691328 is broken Reviewed-by: dcherepanov, denis
jdk/src/share/classes/java/awt/dnd/DragSourceContext.java
--- a/jdk/src/share/classes/java/awt/dnd/DragSourceContext.java	Tue Jun 17 13:37:28 2008 +0400
+++ b/jdk/src/share/classes/java/awt/dnd/DragSourceContext.java	Wed Jun 18 19:20:28 2008 +0400
@@ -486,6 +486,8 @@
         Cursor c = null;
 
         switch (status) {
+            default:
+                targetAct = DnDConstants.ACTION_NONE;
             case ENTER:
             case OVER:
             case CHANGED:
@@ -506,10 +508,6 @@
                     else
                         c = DragSource.DefaultCopyDrop;
                 }
-                break;
-            default:
-                targetAct = DnDConstants.ACTION_NONE;
-
         }
 
         setCursorImpl(c);