Clicking undo while editing a route causes the route to no longer be selected. The is a particular issue in my workflow where I am adding points to a route, make a mistake, undo the mistake, and would then like to continue where I left off without reselecting the route in in the side bar.
Steps to Reproduce
Create a new GPX file
Create some new points
Click "Undo"
Attempt to add more points.
Notice that you cannot do this, and the buttons for doing this have be deactivate.
I'm using this fix at any rate, but I think it's not the best way to go. The call to getLastSelectedPathComponent() is coming up null for some reason, and this would ideally be resolved. It is also likely that that setActiveGpx(null)should be called sometimes.
Clicking undo while editing a route causes the route to no longer be selected. The is a particular issue in my workflow where I am adding points to a route, make a mistake, undo the mistake, and would then like to continue where I left off without reselecting the route in in the side bar.
Steps to Reproduce
Proposed Solution
If I comment out the call to
setActiveGpx
on line 509 foActiveGpxObjects.java
, I get the behavior I want. https://github.com/tboegi/GpsMaster/blob/c8d1d57e519cdd9fc968106b1a99668390fe5452/GpsMaster/src/org/gpsmaster/ActiveGpxObjects.java#L507-L511I'm using this fix at any rate, but I think it's not the best way to go. The call to
getLastSelectedPathComponent()
is coming upnull
for some reason, and this would ideally be resolved. It is also likely that thatsetActiveGpx(null)
should be called sometimes.