]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1952: Start Step id from 1
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 28 Dec 2016 12:23:52 +0000 (15:23 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 28 Dec 2016 12:23:52 +0000 (15:23 +0300)
src/XGUI/XGUI_DataModel.cpp

index ca2de44a284885a2a81f2ee119f931c65641e06c..5a628eefee0f5e5396b7bab318185e78e8c832a4 100644 (file)
@@ -486,7 +486,7 @@ QVariant XGUI_DataModel::data(const QModelIndex& theIndex, int theRole) const
               dynamic_cast<ModelAPI_ResultField::ModelAPI_FieldStep*>
               ((ModelAPI_Entity*)theIndex.internalPointer());
             if (aStep) {
-              return "Step " + QString::number(aStep->id()) + " " +
+              return "Step " + QString::number(aStep->id() + 1) + " " +
                 aStep->field()->textLine(aStep->id()).c_str();
             }
           }