mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Repair a minor defect in callsign input validation
This commit is contained in:
parent
6a2526f984
commit
05d8aa5022
@ -14,7 +14,7 @@ auto CallsignValidator::validate (QString& input, int& pos) const -> State
|
||||
input.remove (0, 1);
|
||||
if (pos > 0) --pos;
|
||||
}
|
||||
while (input.size () && input[input.size ()].isSpace ())
|
||||
while (input.size () && input[input.size () - 1].isSpace ())
|
||||
{
|
||||
if (pos > input.size ()) --pos;
|
||||
input.chop (1);
|
||||
|
Loading…
Reference in New Issue
Block a user