From d0c6dfefc4002886cd52cdabb922453a886d1453 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 28 Dec 2016 15:23:52 +0300 Subject: [PATCH] Issue #1952: Start Step id from 1 --- src/XGUI/XGUI_DataModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index ca2de44a2..5a628eefe 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -486,7 +486,7 @@ QVariant XGUI_DataModel::data(const QModelIndex& theIndex, int theRole) const dynamic_cast ((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(); } } -- 2.39.2