diff --git a/contrib/mobile/iOS/Onelab/ParametersViewController.mm b/contrib/mobile/iOS/Onelab/ParametersViewController.mm index 14855c67597de255d97a4c7e5139f652b387d1bb..dc14d7c0a136457d47311ccb29cfe1179b9e038f 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]);