From c4a2bab6bcc6d2a1da59dcc51dbd43d2a6e1c036 Mon Sep 17 00:00:00 2001 From: srn Date: Mon, 6 Feb 2006 11:58:26 +0000 Subject: [PATCH] Fixed method getNbParameters --- src/SALOMEDS/SALOMEDS_IParameters.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2