Skip to content

Commit c1535de

Browse files
committed
Small fixes to MGRSCoordConverter.
Made some formatting fixes as well as fixing a spelling mistake in one of the comments.
1 parent 25de5ce commit c1535de

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/gov/nasa/worldwind/geom/coords/MGRSCoordConverter.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,14 @@ public long convertMGRSToGeodetic(String MGRSString)
256256
latitude = 0;
257257
longitude = 0;
258258
MGRSComponents mgrs = breakMGRSString(MGRSString);
259-
if (mgrs == null) return last_error;
259+
if (mgrs == null)
260+
{
261+
return last_error;
262+
}
260263

261264
long error_code = MGRS_NO_ERROR;
262-
if (mgrs.zone != 0) {
265+
if (mgrs.zone != 0)
266+
{
263267
UTMCoord UTM = convertMGRSToUTM(MGRSString);
264268
if (UTM != null)
265269
{
@@ -1015,7 +1019,7 @@ public long getError()
10151019
/**
10161020
* The function Convert_MGRS_To_UPS converts an MGRS coordinate string to UPS (hemisphere, easting, and northing)
10171021
* coordinates, according to the current ellipsoid parameters. If any errors occur, the error code(s) are returned
1018-
* by the function, otherwide UPS_NO_ERROR is returned.
1022+
* by the function, otherwise UPS_NO_ERROR is returned.
10191023
*
10201024
* @param MGRS the MGRS coordinate string.
10211025
*

0 commit comments

Comments
 (0)