Get "empty document detection" working

This commit is contained in:
G.K.MacGregor
2020-12-06 17:57:05 +00:00
parent 1855d8dacb
commit f9ce912e79
6 changed files with 42 additions and 4 deletions

View File

@@ -47,6 +47,16 @@ PageBase::~PageBase()
if (m_packets[i] != nullptr)
delete m_packets[i];
}
bool PageBase::isEmpty() const
{
for (int i=0; i<90; i++)
if (m_packets[i] != nullptr)
return false;
return true;
}
QByteArray PageBase::packet(int packetNumber, int designationCode) const
{
int arrayIndex = packetNumber;