]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fixed method getNbParameters
authorsrn <srn@opencascade.com>
Mon, 6 Feb 2006 11:58:26 +0000 (11:58 +0000)
committersrn <srn@opencascade.com>
Mon, 6 Feb 2006 11:58:26 +0000 (11:58 +0000)
src/SALOMEDS/SALOMEDS_IParameters.cxx

index 44911592a37a4ec5e089a95ebc33251521521752..8b1dcafcd13c56a764176390415d3061e0ab53c6 100644 (file)
@@ -154,7 +154,7 @@ int SALOMEDS_IParameters::getNbParameters(const string& entry)
 {
   if(!_ap) return -1;
   if(!_ap->IsSet(entry, PT_STRARRAY)) return -1;
-  return  _ap->GetStrArray(entry).size();
+  return  _ap->GetStrArray(entry).size()/2;
 }
 
 vector<string> SALOMEDS_IParameters::getEntries()