提交 f5178c7c 编写于 作者: D dav

6691328: DragSourceContext returns unexpected cursor

Summary: make the code to be executed if other options don't suit
Reviewed-by: dcherepanov
上级 3f90057e
/* /*
* Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -485,7 +485,6 @@ public class DragSourceContext ...@@ -485,7 +485,6 @@ public class DragSourceContext
Cursor c = null; Cursor c = null;
targetAct = DnDConstants.ACTION_NONE;
switch (status) { switch (status) {
case ENTER: case ENTER:
case OVER: case OVER:
...@@ -507,6 +506,10 @@ public class DragSourceContext ...@@ -507,6 +506,10 @@ public class DragSourceContext
else else
c = DragSource.DefaultCopyDrop; c = DragSource.DefaultCopyDrop;
} }
break;
default:
targetAct = DnDConstants.ACTION_NONE;
} }
setCursorImpl(c); setCursorImpl(c);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册