Skip to content

Commit 356dbfd

Browse files
committed
Version jPskmail-3.2.0.4
- Bug Fix: Ensure the displayed GPS format would be using Dot as decimal delimiter instead of Comma as set in certain locales
1 parent aa7d276 commit 356dbfd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/javapskmail/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
public class Main {
3535

3636
//VK2ETA: Based on "jpskmail 1.7.b";
37-
static String version = "3.2.0.3";
37+
static String version = "3.2.0.4";
3838
static String application = "jPskmail " + version;// Used to preset an empty status
39-
static String versionDate = "20240912";
39+
static String versionDate = "20250305";
4040
static String host = "localhost";
4141
static int port = 7322; //ARQ IP port
4242
static String xmlPort = "7362"; //XML IP port

src/javapskmail/RMsgObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public RMsgObject(String to, String via, String sms,
119119
}
120120

121121

122-
123122
//Returns the latitude and longitude in a formatted string
123+
//Changed so that it is always with a decimal point as the decimal separator
124124
public String getLatLongString() {
125125
double latnum = 0.0;
126126
double lonnum = 0.0;
@@ -130,7 +130,7 @@ public String getLatLongString() {
130130
}
131131
DecimalFormat dFlat = new DecimalFormat("##0.00000;-##0.00000");
132132
DecimalFormat dFlon = new DecimalFormat("###0.00000;-###0.00000");
133-
String decDegreesString = dFlat.format(latnum) + "," + dFlon.format(lonnum);
133+
String decDegreesString = dFlat.format(latnum).replace(',','.') + "," + dFlon.format(lonnum).replace(',','.');
134134

135135
return decDegreesString;
136136
}

0 commit comments

Comments
 (0)