From 1ff4d6ba52f9e66a9a74509707fabd2c101b4723 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 22 Sep 2017 22:09:11 +0000 Subject: [PATCH] Fix an issue with truncated free text messages being generated This is an edge case when working a call like RI9F/GM4WJS where it is not possible to confirm receipt of the full compound callsign in a Tx5 73 message as "RI9F/GM4WJS 73" is 14 characters. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8111 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 94c367e8c..ab4b7187d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4220,10 +4220,11 @@ void MainWindow::genStdMsgs(QString rpt, bool unconditional) break; } } - if (hisCall != hisBase - && m_config.type_2_msg_gen () != Configuration::type_2_msg_5_only + if (hisCall.size () <= 10 && hisCall != hisBase && !eme_short_codes) { - // cfm we have his full call copied as we could not do this earlier + // cfm we have his full call copied as we could not do this + // earlier, as this is a free text message we must be careful + // about the length t = hisCall + " 73"; msgtype(t, ui->tx5->lineEdit ()); } @@ -4235,6 +4236,7 @@ void MainWindow::genStdMsgs(QString rpt, bool unconditional) msgtype(t, ui->tx1); } else if (!eme_short_codes + && hisCall.size () <= 10 // avoid truncated free text message && ("MSK144" != m_mode || !m_bShMsgs)) { t=hisCall + " 73"; msgtype(t, ui->tx5->lineEdit ());