Skip to content

Commit 7efb0e5

Browse files
authored
Merge pull request #649 from drowe67/ms-grid-square-math
Fix issue preventing usage of the 5th and 6th letter of the grid square.
2 parents 21fedeb + a66d58a commit 7efb0e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

USER_MANUAL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ LDPC | Low Density Parity Check Codes - a family of powerful FEC codes
903903
* Update Filter dialog to better handle resizing. (PR #641)
904904
* Fix capitalization of distance units in FreeDV Reporter window. (PR #642)
905905
* Rename KHz to kHz in documentation and UI. (PR #643)
906-
* Avoid calculating distances in FreeDV Reporter window for those with invalid grid squares. (PR #646)
906+
* Avoid calculating distances in FreeDV Reporter window for those with invalid grid squares. (PR #646, #649)
907907
* Fix display bugs in FreeDV Reporter window when switching between dark and light mode. (PR #646)
908908
2. Enhancements:
909909
* Allow user to refresh status message even if it hasn't been changed. (PR #632)

src/freedv_reporter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ void FreeDVReporterDialog::calculateLatLonFromGridSquare_(wxString gridSquare, d
901901
// If grid square is 6 or more letters, THEN use the next two.
902902
// Otherwise, optional.
903903
wxString optionalSegment = gridSquare.Mid(4, 2);
904-
wxRegEx allLetters(_("^[a-z]{2}$"));
904+
wxRegEx allLetters(_("^[A-Z]{2}$"));
905905
if (gridSquare.Length() >= 6 && allLetters.Matches(optionalSegment))
906906
{
907907
lon += ((char)gridSquare.GetChar(4) - charA) * 5.0 / 60;

0 commit comments

Comments
 (0)