Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a5e1d69
)
Issue #1952: Start Step id from 1
author
vsv
<vitaly.smetannikov@opencascade.com>
Wed, 28 Dec 2016 12:23:52 +0000
(15:23 +0300)
committer
vsv
<vitaly.smetannikov@opencascade.com>
Wed, 28 Dec 2016 12:23:52 +0000
(15:23 +0300)
src/XGUI/XGUI_DataModel.cpp
patch
|
blob
|
history
diff --git
a/src/XGUI/XGUI_DataModel.cpp
b/src/XGUI/XGUI_DataModel.cpp
index ca2de44a284885a2a81f2ee119f931c65641e06c..5a628eefee0f5e5396b7bab318185e78e8c832a4 100644
(file)
--- 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_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();
}
}