Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate selection list entries for waypoints with non-unique names #1316

Open
frank-vanderhulst opened this issue Dec 7, 2023 · 1 comment
Labels
more information More information needed

Comments

@frank-vanderhulst
Copy link

XCSoar versions having and not having the problem

7.40, but I have noticed it on earlier versions. I don't know what version it started on.

System information

Both Android & Windows
Screenshot 2023-12-07 122035

Steps to reproduce the behavior

Nav
WaypointList
In the Name field type KAI and click OK

Expected behavior

Each waypoint will appear once in the list.

Actual behavior

Some waypoints appear twice, as per the screenshot attached. There are 2 VRPs named "Kaituna Br", and each appears twice.

Do you have any idea what may have caused this?

I suspect that it's related to having two waypoints with the same name. Unfortunately, the NZ official list of VRPs at https://www.aip.net.nz/assets/AIP/Air-Navigation-Register/1-Permanent-Airspace/1_06_NZANR_Part_71_Visual_Reporting_Points_VRP.pdf contains a duplicate "Kaituna Bridge". In addition there is a VRP named "Feilding" and an airfield named "Feilding".

Do you have an idea how to solve the issue?

I guess that somehow duplicated entries are each processed twice.

As a workaround, I have manually edited the waypoints.cup file so that the Kaituna Bridge and Feilding waypoint names are unique, and the problem is no longer visible.

As an experiment, I generated a waypoints.cup file with 2 of each of the "Kaituna Bridge" waypoints and loaded it into XCSoar. This resulted in 8 entries being shown for "Kaituna Bridge" in the selection list.

waypoints.zip

@MaxKellermann
Copy link
Contributor

I don't know what version it started on.

Find out, and then bisect the faulty git commit.

@MaxKellermann MaxKellermann added the more information More information needed label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information More information needed
Projects
None yet
Development

No branches or pull requests

2 participants