]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2968 : Field - names of steps are different after Export to GEOM
authormpv <mpv@opencascade.com>
Tue, 30 Jul 2019 12:54:02 +0000 (15:54 +0300)
committermpv <mpv@opencascade.com>
Tue, 30 Jul 2019 12:54:14 +0000 (15:54 +0300)
src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp

index 96d10441c6698de60bf23cea44debbce7186261f..da17f46b8eed32edd06fa86f6f000ed72f2276f2 100644 (file)
@@ -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();