atoms GUI: fix error when visiting subcategories 32/19532/3
Samuel GOUGEON [Sun, 12 Nov 2017 14:54:06 +0000 (15:54 +0100)]
 *--> atomsGui
 * Go to "Data analysis" => "Statistics - *"

 at line    83 of function atomsGetLeftListboxElts ( SCI\modules\atoms\macros\atoms_internals\atomsGetLeftListboxElts.sci line 104 )
 at line    26 of function cbAtomsGui              ( SCI\modules\atoms\macros\atoms_gui\cbAtomsGui.sci line 40 )
 ':': Wrong type for argument 3: Real scalar expected.

Change-Id: I4593f7e742a54dd858276a92136b882955c7828f

scilab/modules/atoms/macros/atoms_internals/atomsGetLeftListboxElts.sci

index 56ba623..520375a 100644 (file)
@@ -101,7 +101,7 @@ function elements = atomsGetLeftListboxElts(category)
 
         else
             categories = [];
-            parent     = part(category,1:index_start-1);
+            parent     = part(category,1:index_start(1)-1);
             top_str    = parent;
             top_mat    = ["category" parent];