From: srn Date: Mon, 6 Feb 2006 11:58:26 +0000 (+0000) Subject: Fixed method getNbParameters X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c4a2bab6bcc6d2a1da59dcc51dbd43d2a6e1c036;p=modules%2Fkernel.git Fixed method getNbParameters --- diff --git a/src/SALOMEDS/SALOMEDS_IParameters.cxx b/src/SALOMEDS/SALOMEDS_IParameters.cxx index 44911592a..8b1dcafcd 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.cxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.cxx @@ -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 SALOMEDS_IParameters::getEntries()