From 292af1149e1a6ddb27802d6543733d38ca5be87d Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 30 Jul 2019 15:54:02 +0300 Subject: [PATCH] Fix for the issue #2968 : Field - names of steps are different after Export to GEOM --- src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index 96d10441c..da17f46b8 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -446,8 +446,8 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) AttributeIntArrayPtr aStamps = aFieldFeature->intArray("stamps"); for (int aStepIndex = 0; aStepIndex < aTables->tables(); aStepIndex++) { - XAO::Step* aStep = aXaoField->addNewStep(aStepIndex); - aStep->setStep(aStepIndex); + XAO::Step* aStep = aXaoField->addNewStep(aStepIndex + 1); + aStep->setStep(aStepIndex + 1); int aStampIndex = aStamps->value(aStepIndex); aStep->setStamp(aStampIndex); int aNumElements = isWholePart ? aXaoField->countElements() : aTables->rows(); -- 2.39.2