From 64d8d8b24f6c41337fdd8ac10c4ea1fa5c91c99b Mon Sep 17 00:00:00 2001 From: peterkvt80 Date: Sat, 18 Dec 2021 19:27:52 +0000 Subject: [PATCH] Fixed EP1 load. --- ttxpage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ttxpage.cpp b/ttxpage.cpp index 7206350..135f88a 100644 --- a/ttxpage.cpp +++ b/ttxpage.cpp @@ -89,7 +89,7 @@ bool TTXPage::m_LoadT42(std::string filename) T42* t42; char buf[500]; TTXPage* p=this; - bool ok = false; + bool ok{false}; std::ifstream filein(filename.c_str(), std::ios::binary | std::ios::in); // todo Decode the packet to see what we do @@ -115,6 +115,7 @@ bool TTXPage::m_LoadT42(std::string filename) if (mag == 0xff || row == 0xff || filein.eof()) { page_done = true; + ok = false; } else {