Procházet zdrojové kódy

optimize bruker feature scan code.

gsp před 1 rokem
rodič
revize
e22eaa320e
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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];