From 3455625fb6840bf279ea7a5ef9d81567f02c7e0a Mon Sep 17 00:00:00 2001 From: "G.K.MacGregor" Date: Sun, 3 Jan 2021 20:35:57 +0000 Subject: [PATCH] Fix potential non-refresh on selecting last subpage --- document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document.cpp b/document.cpp index facf0ff..e67377a 100644 --- a/document.cpp +++ b/document.cpp @@ -69,7 +69,7 @@ void TeletextDocument::setPacketCoding(PacketCodingEnum newPacketEncoding) void TeletextDocument::selectSubPageIndex(int newSubPageIndex, bool forceRefresh) { // forceRefresh overrides "beyond the last subpage" check, so inserting a subpage after the last one still shows - dangerous workaround? - if (forceRefresh || (newSubPageIndex != m_currentSubPageIndex && newSubPageIndex < m_subPages.size()-1)) { + if (forceRefresh || (newSubPageIndex != m_currentSubPageIndex && newSubPageIndex < m_subPages.size())) { emit aboutToChangeSubPage(); m_currentSubPageIndex = newSubPageIndex; emit subPageSelected();