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:
parent
4589478957
commit
3e60d0c84a
@ -70,7 +70,7 @@ GCS GCS::gcs(int id)
|
|||||||
QList<GCS::Entry>::iterator it = std::lower_bound(
|
QList<GCS::Entry>::iterator it = std::lower_bound(
|
||||||
_gcss.begin(), _gcss.end(), id);
|
_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)
|
GCS GCS::gcs(int geodeticDatum, int primeMeridian, int angularUnits)
|
||||||
|
Loading…
Reference in New Issue
Block a user