cgeo / cgeo

c:geo - The powerful Android geocaching app.
www.cgeo.org
Apache License 2.0
1.39k stars 566 forks source link

Nearby distance limit setting not working properly for 1km #12863

Open Lineflyer opened 2 years ago

Lineflyer commented 2 years ago

Describe your problem!

I wanted to set the distance for nearby caches to 1km but its not working. It seems to be something explicitly connected to 1km setting. Once I use a larger setting it seems to work.

How to reproduce?

Actual result after these steps?

Returned list is not limited If you access the setting again it shows 0km (=unlimited)

Expected result after these steps?

Returned list should be limited to 1km. Setting should remember 1km and not fall back to 0km

Reproducible

Yes

c:geo Version

2022.03.16-NB

System information

No response

Additional Information

No response

Lineflyer commented 2 years ago

Addition: If I set the limit to 2km, leave the settings menu and enter it again it has been reduced to 1km. Starting with 3km this behavior does no longer show up.

Rounding issue?