From bea96413bab341bdb4da7a599904da387fa5c6f1 Mon Sep 17 00:00:00 2001 From: "G.K.MacGregor" Date: Sun, 15 Nov 2020 12:24:04 +0000 Subject: [PATCH] Don't save FL command if first FastText link is xFF --- document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document.cpp b/document.cpp index 0cae851..5ad5084 100644 --- a/document.cpp +++ b/document.cpp @@ -143,7 +143,7 @@ void TeletextDocument::saveDocument(QTextStream *outStream) for (auto &subPage : m_subPages) { subPage->savePage(outStream, m_pageNumber, subPageNumber++); - if (subPage->fastTextLinkPageNumber(0) != 0x8ff) { + if ((subPage->fastTextLinkPageNumber(0) & 0x0ff) != 0x0ff) { *outStream << "FL,"; for (int i=0; i<6; i++) { // Stored as page link with relative magazine number, convert to absolute page number for display