Now that the ports undo/redo correctly I am running into an issue with connected links with the undo/redo similar to an issue we have had before (http://www.nwoods.com/forum/forum_posts.asp?TID=5123&KW=&title=links-disconnecting-after-rotateundo)
Undo/redo is causing the links to draw from the top-left of the node instead of from the port they are supposed to originate from.
Here is a sample of what is happening…
Add a port, draw a link from the new port:
Move the port:
Undo port move:
Redo port move:
I’ve checked my Route.ComputePoints and it appears that the routes are being recomputed after Undo/Redo… The call stack shows that the call is originating from DiagramPanel.ArrangeOverride. I have checked and the Route.Points are correct before ComputePoints is called.
Why would the route be recomputed at this point? And is there any way to prevent it?