]> git.street.me.uk Git - andy/viking.git/commit
Fix Waypoint & Track visibility issues.
authorRob Norris <rw_norris@hotmail.com>
Fri, 3 Dec 2010 00:35:37 +0000 (00:35 +0000)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Fri, 3 Dec 2010 18:24:09 +0000 (19:24 +0100)
commit58cd1c43886aae2cb7773b00067b741139d195ea
tree5c9cb0bf01c3e92395a39b49e139f73004e84e06
parent1b6659bd6a83446ddd2e15143f17d4cd2a210049
Fix Waypoint & Track visibility issues.

Problems:
1. If a waypoint is made invisibile, saved to a .vik and then the file reloaded the waypoint is visible.
2. If an invisible waypoint is cut/copied - upon paste it is marked as invisible.
3. If an invisible track is cut/copied - upon paste it has no visibility control.
4. If an track or waypoint is cut, a redraw event is done (as the item is no longer visible), however upon pasting it is not seen until a redraw event is triggered (eg zoom out).

Thus fixed add waypoint and track code to separate the control of the visibility checkbox and the setting of the checkbox itself. [Fixes 1,2&3]
Upon pastes, generate layer update if necessary. [Fixes 4]
src/viktrwlayer.c