pcb

Comment 1 for bug 699203

Revision history for this message
Ben Jackson (ben.jackson) wrote :

I've figured out why the specific case listed happens. The restored origin isn't retrieved from the undo, it's guessed from the origin of the current line and the remaining board. If you "cross the streams" the nature of the search seems to find the older line every time. The obvious way to fix that is to get the point out of the undo information -- there's just no good way to pass that around at the moment. I suppose the Crosshair attach state could be added as an undo type, that might be nice and clean. The catch is that if you've passed out of line mode, the crosshair info should not be restored.

There's a more annoying version of this problem, though, which is probably due to straight line segments being extended by line drawing and then re-chopped by the undo (which removes the combined segment and restores the partial segment). The undo restores the line, but lost the FOUNDFLAG. If you're in auto-drc, you can't actually draw off the end of the line. I am going to commit a fix for that.