//
function atomsUpdateProgressBar(winId, value)
- if (getscilabmode() <> "NWNI" & winId.type == "Waitbar")
+ if (getscilabmode() <> "NWNI" & winId <> [] & winId.type == "Waitbar")
waitbar(value, winId);
end
-endfunction
\ No newline at end of file
+endfunction