|
@@ -3017,13 +3017,19 @@ BOOL COTSBrukerImpl::SetXRayPoints(CPosXraysList& a_listXrayPois, const DWORD a_
|
|
|
return FALSE;
|
|
|
}
|
|
|
|
|
|
- std::vector<double> peakList;
|
|
|
+ // set spectrum data for the x-ray point
|
|
|
+ a_listXrayPois[i]->SetXrayData(nChannelData);
|
|
|
+
|
|
|
std::vector<CString> eleList;
|
|
|
for (size_t i = 0; i < a_listXrayPois[i]->GetElementQuantifyData().size(); i++)
|
|
|
{
|
|
|
eleList.push_back(a_listXrayPois[i]->GetElementQuantifyData()[i]->GetName());
|
|
|
}
|
|
|
- bool isFilter = COTSImageProcess::FindPeaks(nChannelData, peakList, eleList);
|
|
|
+ bool isFilter = true;
|
|
|
+ if (eleList.size() != 0)
|
|
|
+ {
|
|
|
+ isFilter = COTSImageProcess::FindPeaks(nChannelData, eleList);
|
|
|
+ }
|
|
|
|
|
|
if (m_bDoQuantification && isFilter)
|
|
|
{
|
|
@@ -3047,9 +3053,6 @@ BOOL COTSBrukerImpl::SetXRayPoints(CPosXraysList& a_listXrayPois, const DWORD a_
|
|
|
CElementChemistriesList listElement;
|
|
|
a_listXrayPois[i]->SetElementQuantifyData(listElement);
|
|
|
}
|
|
|
-
|
|
|
- // set spectrum data for the x-ray point
|
|
|
- a_listXrayPois[i]->SetXrayData(nChannelData);
|
|
|
}
|
|
|
|
|
|
// We have seen rare instances where StartPointListMeasurement returns some unexpected empty
|