]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fixed a bug
authorsrn <srn@opencascade.com>
Thu, 9 Feb 2006 15:22:31 +0000 (15:22 +0000)
committersrn <srn@opencascade.com>
Thu, 9 Feb 2006 15:22:31 +0000 (15:22 +0000)
src/KERNEL_PY/iparameters.py
src/SALOMEDS/SALOMEDS_IParameters.cxx

index 8754c93b5635d5635e02f253378dca59f963e0c5..96abfbedc706c95794225fc3754ee81d437103fd 100755 (executable)
@@ -45,7 +45,7 @@ class IParameters:
             self._ap.SetStrArray(listName, v)
             pass
         
-        v = _ap.GetStrArray(listName)
+        v = self._ap.GetStrArray(listName)
         v.append(value)
         self._ap.SetStrArray(listName, v)
         return (len(v)-1)
@@ -111,7 +111,7 @@ class IParameters:
         i = 0
         while i<length:
             names.append(v[i])
-            i+=1
+            i+=2
             pass
         
         return names
@@ -127,7 +127,7 @@ class IParameters:
         i = 1
         while i<length:
             values.append(v[i]+1)
-            i+=1
+            i+=2
             pass
         
         return values
index 14c5ae8f19ec0649a8b193f0e2f01507a7683704..83292d3869a890657e78c98526ad90f2a7b7fd6c 100644 (file)
@@ -131,7 +131,7 @@ vector<string> SALOMEDS_IParameters::getAllParameterNames(const string& entry)
   if(!_ap->IsSet(entry, PT_STRARRAY)) return v;
   v = _ap->GetStrArray(entry);
   int length = v.size();
-  for(int i = 0; i<length; i+=1) {
+  for(int i = 0; i<length; i+=2) {
     names.push_back(v[i]);
   }
   return names;
@@ -144,7 +144,7 @@ vector<string> SALOMEDS_IParameters::getAllParameterValues(const string& entry)
   if(!_ap->IsSet(entry, PT_STRARRAY)) return v;
   v = _ap->GetStrArray(entry);
   int length = v.size();
-  for(int i = 1; i<length; i+=1) {
+  for(int i = 1; i<length; i+=2) {
     values.push_back(v[i]);
   }
   return values;