From: mpv Date: Tue, 30 Jul 2019 12:54:02 +0000 (+0300) Subject: Fix for the issue #2968 : Field - names of steps are different after Export to GEOM X-Git-Tag: VEDF2019Lot4~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=292af1149e1a6ddb27802d6543733d38ca5be87d;p=modules%2Fshaper.git Fix for the issue #2968 : Field - names of steps are different after Export to GEOM --- 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();