1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Fixed binary search

This commit is contained in:
Martin Tůma 2024-07-01 08:58:12 +02:00
parent 4589478957
commit 3e60d0c84a

View File

@ -70,7 +70,7 @@ GCS GCS::gcs(int id)
QList<GCS::Entry>::iterator it = std::lower_bound(
_gcss.begin(), _gcss.end(), id);
return (it == _gcss.end()) ? GCS() : it->gcs();
return (it == _gcss.end() || id != it->id()) ? GCS() : it->gcs();
}
GCS GCS::gcs(int geodeticDatum, int primeMeridian, int angularUnits)