diff --git a/Decoder/decodedtext.cpp b/Decoder/decodedtext.cpp index e65d34bd8..3c684f824 100644 --- a/Decoder/decodedtext.cpp +++ b/Decoder/decodedtext.cpp @@ -60,6 +60,8 @@ DecodedText::DecodedText (QString const& the_string) // qDebug () << "DecodedText: the_string:" << the_string << "Nbsp pos:" << the_string.indexOf (QChar::Nbsp); if (message_.length() >= 1) { +// remove appended confidence (?) and ap designators before truncating the message + message_ = clean_string_.mid (column_qsoText + padding_).trimmed (); message0_ = message_.left(37); message_ = message_.left(37).remove (QRegularExpression {"[<>]"}); int i1 = message_.indexOf ('\r'); diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 32f23b41a..41edc1795 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -7999,7 +7999,6 @@ void MainWindow::p1ReadFromStdout() //p1readFromStdout } else { int n=t.length(); - t=t.left(85); // truncate any apriori code t=t.mid(0,n-2) + " "; t.remove(QRegExp("\\s+$")); QStringList rxFields = t.split(QRegExp("\\s+"));