Index: E:/udig/trunk/plugins/net.refractions.udig.tool.edit/src/net/refractions/udig/tools/edit/behaviour/MoveVertexBehaviour.java =================================================================== --- E:/udig/trunk/plugins/net.refractions.udig.tool.edit/src/net/refractions/udig/tools/edit/behaviour/MoveVertexBehaviour.java (revision 19514) +++ E:/udig/trunk/plugins/net.refractions.udig.tool.edit/src/net/refractions/udig/tools/edit/behaviour/MoveVertexBehaviour.java (working copy) @@ -14,6 +14,10 @@ */ package net.refractions.udig.tools.edit.behaviour; +import java.awt.Rectangle; + +import com.vividsolutions.jts.geom.Envelope; + import net.refractions.udig.core.IProvider; import net.refractions.udig.project.command.UndoableComposite; import net.refractions.udig.project.command.UndoableMapCommand; @@ -207,6 +211,19 @@ EditState.MODIFYING, isSnappingValid())); command.getFinalizerCommands().add( new SetEditStateCommand(handler, EditState.MODIFYING)); + + //make sure the display refreshes + if (handler.getCurrentGeom() != null && handler.getCurrentGeom().isChanged()) + { + //confirm move? + command.getCommands().add(handler.getCommand(handler.getAcceptBehaviours())); + + //get area to refresh and refresh it + Rectangle bounds = handler.getCurrentShape().getBounds(); + handler.getContext().getSelectedLayer().refresh(new Envelope( + (double)bounds.x, (double)bounds.width, (double)bounds.y, (double)bounds.height)); + } + return command; }