From 018a6bd76f2ed278aa3801e5f5ae71c08ee85fbb Mon Sep 17 00:00:00 2001 From: sunwen Date: Mon, 3 Jul 2023 17:54:50 +0800 Subject: [PATCH] Fix getCEMeasuredData without CEMeasured. --- src/ParserPrivate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ParserPrivate.cpp b/src/ParserPrivate.cpp index 45781c1..5fc5642 100644 --- a/src/ParserPrivate.cpp +++ b/src/ParserPrivate.cpp @@ -428,7 +428,7 @@ AScanData ParserPrivate::getAscanDataOfCEMeasured(unsigned short aTasNum,const T { aShotList = mShotList.get(); } - if (!aShotList->isValid() || !aShotList->hasTasNum(aTasNum)) + if (!aShotList->isValid() || !aShotList->hasTasNum(aTasNum) || !aShotList->hasCEMeasured()) { return AScanData(); } @@ -485,7 +485,7 @@ OneTasAScanData ParserPrivate::getOneTasAscanDataOfCEMeasured(unsigned short aTa { aShotList = mShotList.get(); } - if (!aShotList->isValid() || !aShotList->hasTasNum(aTasNum)) + if (!aShotList->isValid() || !aShotList->hasTasNum(aTasNum) || !aShotList->hasCEMeasured()) { return OneTasAScanData(); }