xitingTick / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

GeoPoint.clone without altitude #507

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
GeoPoint clone method doesn't copy the altitude attribute. 

The method could also return a GeoPoint instead of an Object (legal - and 
practical - since Java 5). 

So the full fix: 

@Override public GeoPoint clone() {
   return new GeoPoint(this.mLatitudeE6, this.mLongitudeE6, this.mAltitude);
}

Original issue reported on code.google.com by mathieu....@gmail.com on 2 Jan 2014 at 10:46

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1396.

Original comment by neilboyd on 3 Jan 2014 at 7:37