From: rnv Date: Tue, 2 Dec 2008 14:31:42 +0000 (+0000) Subject: Fix some bugs. X-Git-Tag: TG_DumpPython_Extension_3_1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=69ef5d6f25ece0587600745138e80f5544180612 Fix some bugs. --- diff --git a/src/SMESH_I/SMESH_NoteBook.cxx b/src/SMESH_I/SMESH_NoteBook.cxx index afba7c732..ac3ae0c15 100644 --- a/src/SMESH_I/SMESH_NoteBook.cxx +++ b/src/SMESH_I/SMESH_NoteBook.cxx @@ -345,7 +345,7 @@ void SMESH_NoteBook::ReplaceVariables() else if(aStates->GetObjectType().IsEqual("NETGEN_SimpleParameters_3D") || aStates->GetObjectType().IsEqual("NETGEN_SimpleParameters_2D")){ - if((aMethod == "SetNumberOfSegments" || aMethod == "LocalLength") && + if((aMethod == "SetNumberOfSegments" || aMethod == "SetLocalLength") && aStates->GetCurrectState().size() >= 1) { if(!aStates->GetCurrectState().at(0).IsEmpty() ) aCmd->SetArg(1,aStates->GetCurrectState().at(0));