X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_NoteBook.cxx;fp=src%2FSMESH_I%2FSMESH_NoteBook.cxx;h=3f53f2c28a461126e79a5cecfcaa19db0dbdc00a;hb=96b56d1ee6cac6144b4cb376187ec7c21be4ae51;hp=7994cf1f100ded4e341bb69c016390802484eafd;hpb=16a07c876163e3c993e41db77e9181789b7324b8;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_NoteBook.cxx b/src/SMESH_I/SMESH_NoteBook.cxx index 7994cf1f1..3f53f2c28 100644 --- a/src/SMESH_I/SMESH_NoteBook.cxx +++ b/src/SMESH_I/SMESH_NoteBook.cxx @@ -286,7 +286,7 @@ void SMESH_NoteBook::ReplaceVariables() varIndex = atoi( varIndexPtr ); if ( 0 <= (int)varIndex && varIndex < vars.size() && !vars[varIndex].empty() ) { - // replace '$VarIndex$' either by var name of var value + // replace '$VarIndex$' either by var name or var value const char var0 = vars[varIndex][0]; const bool isValue = (( '0' <= var0 && var0 <= '9' ) || var0 == '-'); if ( isValue ) // remove TVar::Quote() as well