瀏覽代碼

optimize bruker feature scan code.

gsp 1 年之前
父節點
當前提交
e22eaa320e
共有 1 個文件被更改,包括 2 次插入1 次删除
  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];