From: Matti Tahvonen Date: Fri, 15 Apr 2011 10:47:53 +0000 (+0000) Subject: minor refactoring X-Git-Tag: 6.7.0.beta1~335 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b98dabd1f4c9c9b3b63843c617a8332d232ebfd;p=vaadin-framework.git minor refactoring svn changeset:18321/svn branch:6.6 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java b/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java index 704a43c403..896662436f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java @@ -103,16 +103,16 @@ public class VDragAndDropWrapper extends VCustomComponent implements paintable = (Paintable) w; transferable.setData("component", paintable); - VDragEvent startDrag = VDragAndDropManager.get().startDrag( + VDragEvent dragEvent = VDragAndDropManager.get().startDrag( transferable, event, true); transferable.setData("mouseDown", new MouseEventDetails(event).serialize()); if (dragStarMode == WRAPPER) { - startDrag.createDragImage(getElement(), true); + dragEvent.createDragImage(getElement(), true); } else { - startDrag.createDragImage(((Widget) paintable).getElement(), + dragEvent.createDragImage(((Widget) paintable).getElement(), true); } return true;