From 69ef5d6f25ece0587600745138e80f5544180612 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 2 Dec 2008 14:31:42 +0000 Subject: [PATCH] Fix some bugs. --- src/SMESH_I/SMESH_NoteBook.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2