|
@@ -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];
|