Undo not changing relative zero position

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Undo not changing relative zero position

jaise
Step to reproduce :

1. Start a new drawing
2. Start 2 point line
3. continue drawing 4 lines.
4. Undo last line using ctrl + z.
5. But relative zero not changed.
6. we need to exit from command to set relative position to last line end.
Reply | Threaded
Open this post in threaded view
|

Re: Undo not changing relative zero position

dxli
hi jaise,

the action Edit -> Undo (from the top toolbar area, or Ctr + z) doesn't handle relative zeros.

for action Draw -> Line -> 2 points, you can use command line "undo", which should handle relative zero also. However, this feature seems to be broken currently. I will look into this one.

Thanks a lot for the detailed description.

jaise wrote
Step to reproduce :

1. Start a new drawing
2. Start 2 point line
3. continue drawing 4 lines.
4. Undo last line using ctrl + z.
5. But relative zero not changed.
6. we need to exit from command to set relative position to last line end.
Reply | Threaded
Open this post in threaded view
|

Re: Undo not changing relative zero position

dxli
In reply to this post by jaise
Hi Jaise,

fixed in master and 2.0 branches, and the fix is quite straight forward:

https://github.com/LibreCAD/LibreCAD/commit/00b7b82435d33d8127d5b297c584ec0fa187b02b
jaise wrote
Step to reproduce :

1. Start a new drawing
2. Start 2 point line
3. continue drawing 4 lines.
4. Undo last line using ctrl + z.
5. But relative zero not changed.
6. we need to exit from command to set relative position to last line end.