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.
Proposed Solution
If I comment out the call to setActiveGpx on line 509 fo ActiveGpxObjects.java, I get the behavior I want.
|
Object currSelection = tree.getLastSelectedPathComponent(); |
|
if (currSelection == null) { |
|
setActiveGpx(null); |
|
return; |
|
} |
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
setActiveGpxon line 509 foActiveGpxObjects.java, I get the behavior I want.GpsMaster/GpsMaster/src/org/gpsmaster/ActiveGpxObjects.java
Lines 507 to 511 in c8d1d57
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 upnullfor some reason, and this would ideally be resolved. It is also likely that thatsetActiveGpx(null)should be called sometimes.