Merged in null pointer issue.
This commit is contained in:
@@ -246,6 +246,12 @@ public class RaceXMLCreator {
|
|||||||
mark.setTargetLng(longScaled);
|
mark.setTargetLng(longScaled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Scales a boundary from the center(pivot)
|
||||||
|
* @param limit boundary point
|
||||||
|
* @param center pivot
|
||||||
|
* @param scale scale
|
||||||
|
*/
|
||||||
private static void scalePoint(XMLLimit limit, GPSCoordinate center, double scale){
|
private static void scalePoint(XMLLimit limit, GPSCoordinate center, double scale){
|
||||||
double latDiff = limit.getLat() - center.getLatitude();
|
double latDiff = limit.getLat() - center.getLatitude();
|
||||||
double longDiff = limit.getLon() - center.getLongitude();
|
double longDiff = limit.getLon() - center.getLongitude();
|
||||||
|
|||||||
Reference in New Issue
Block a user