From f1746313105a15b34b0b1449a8e0ec1e13459101 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 19 Nov 2016 18:31:52 +0000 Subject: [PATCH] fix removal of multiple parameters in a single section --- contrib/mobile/iOS/Onelab/ParametersViewController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/mobile/iOS/Onelab/ParametersViewController.mm b/contrib/mobile/iOS/Onelab/ParametersViewController.mm index 14855c6759..dc14d7c0a1 100644 --- a/contrib/mobile/iOS/Onelab/ParametersViewController.mm +++ b/contrib/mobile/iOS/Onelab/ParametersViewController.mm @@ -274,9 +274,9 @@ NSString *GetSectionTitle(NSString *name) } // check for hidden/deleted parameters - for(int iSection = 0; iSection < [_sectionstitle count]; iSection++) { + for(int iSection = [_sectionstitle count] - 1; iSection >= 0; iSection--) { NSMutableArray *section = [_sections objectAtIndex:iSection]; - for(int iparameter = 0; iparameter < [section count]; iparameter++) { + for(int iparameter = [section count] - 1; iparameter >= 0; iparameter--) { Parameter * p = [section objectAtIndex: iparameter]; std::vector<onelab::number> number; onelab::server::instance()->get(number, [[p getName] UTF8String]); -- GitLab