From: vsv Date: Wed, 28 Dec 2016 12:23:52 +0000 (+0300) Subject: Issue #1952: Start Step id from 1 X-Git-Tag: V_2.7.0~351^2~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0c6dfefc4002886cd52cdabb922453a886d1453;p=modules%2Fshaper.git Issue #1952: Start Step id from 1 --- 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(); } }