Pārlūkot izejas kodu

optimize bruker feature scan code.

gsp 1 gadu atpakaļ
vecāks
revīzija
e22eaa320e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      OTSCPP/OTSControl/Bruker/OTSBrukerImpl.cpp

+ 2 - 1
OTSCPP/OTSControl/Bruker/OTSBrukerImpl.cpp

@@ -2504,9 +2504,10 @@ BOOL COTSBrukerImpl::GetXRayByFeatures(CPosXrayList& a_vXPoints, std::vector<Bru
 	for (size_t i = 0; i < nCollectCount; i++)
 	{
 		BrukerFeature ofeature = a_vFeatures[i];
-		features[i].SegmentCount = ofeature.SegmentCount;
+		
 		if (ofeature.SegmentCount > 0)
 		{
+			features[i].SegmentCount = ofeature.SegmentCount;
 			int segCount = features[i].SegmentCount;
 			//auto ofeature = a_vFeatures[i];
 			features[i].Segments = new BrukerDll::TSegment[segCount];