]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
temporary check on empty string: should be removed
authorasl <asl@opencascade.com>
Thu, 10 Dec 2009 13:31:55 +0000 (13:31 +0000)
committerasl <asl@opencascade.com>
Thu, 10 Dec 2009 13:31:55 +0000 (13:31 +0000)
src/SalomeApp/SalomeApp_Notebook.cxx

index e15bcdba41a5ec4976fd210a21b010dd208b9af7..89356ca8b01f640e12c2f5f988fd14f675d12614 100644 (file)
@@ -271,7 +271,7 @@ void SalomeApp_Notebook::setParameters( SALOME::ParameterizedObject_ptr theObjec
 
     if( anIsValue )
       aParameter = "";
-    else if( !isParameter( aParameter ) )
+    else if( aParameter.length() > 0 && !isParameter( aParameter ) )
       myNotebook->AddExpression( aParameter.toLatin1().constData() );
 
     aParams[i] = CORBA::string_dup( aParameter.toLatin1().constData() );