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=47de62ed438d82e4c5770e36a9f8afabad63e323;hb=1724cd310e878cad4c2f89cacea8761303d52668;hp=d064e6d7a6498a9fd4126bbac0238d0eb812220f;hpb=da7d0ab212740fa475fdf77333aa20f9c547edac;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_NoteBook.cxx b/src/SMESH_I/SMESH_NoteBook.cxx index d064e6d7a..47de62ed4 100644 --- a/src/SMESH_I/SMESH_NoteBook.cxx +++ b/src/SMESH_I/SMESH_NoteBook.cxx @@ -290,6 +290,16 @@ void SMESH_NoteBook::ReplaceVariables() aCmd->SetArg(1,aStates->GetCurrectState().at(1)); //aStates->IncrementState(); } + if(aMethod == "SetStartLength" && + aStates->GetCurrectState().size() >= 2) { + if(!aStates->GetCurrectState().at(0).IsEmpty() ) + aCmd->SetArg(1,aStates->GetCurrectState().at(0)); + } + if(aMethod == "SetEndLength" && + aStates->GetCurrectState().size() >= 2) { + if(!aStates->GetCurrectState().at(1).IsEmpty() ) + aCmd->SetArg(1,aStates->GetCurrectState().at(1)); + } } //Case for Deflection1D hypothesis