operation + [] fixed in demo gui. 83/17783/2
Cedric Delamarre [Tue, 9 Feb 2016 09:28:50 +0000 (10:28 +0100)]
Change-Id: I9fa1580a58f4f98e215bea396f6b54e0c718afa5

scilab/modules/demo_tools/macros/demo_gui_update.sci

index 2ae3c8d..88c5874 100644 (file)
@@ -74,8 +74,9 @@ function script_path = demo_gui_update()
 
         //Prints an arrow if its a submenu
         a = grep(listbox.userdata(:,2),"dem.gateway.sce")
-        listbox.string(a) = "<html>"+listbox.string(a)+" &#x25B8; </html>";
-
+        if listbox.string(a) <> [] then
+            listbox.string(a) = "<html>"+listbox.string(a)+" &#x25B8; </html>";
+        end
         ud = demo_fig.userdata;
         ud.subdemolist = previous_demolist;
         demo_fig.userdata = ud;