We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6858552 commit 4761225Copy full SHA for 4761225
1 file changed
mlapptools.m
@@ -303,9 +303,9 @@ function textAlign(uiElement, alignment)
303
props = jsondecode(win.executeJS(sprintf('Object.keys(W[%d])', ind1-1)));
304
tmp = mlapptools.emptyStructWithFields(props);
305
validProps = fieldnames(tmp);
306
- for indP = 1:numel(tmp)
+ for indP = 1:numel(validProps)
307
try
308
- tmp.(validProps(indP)) = jsondecode(win.executeJS(sprintf(['W[%d].' props{ind1}], ind1-1)));
+ tmp.(validProps{indP}) = jsondecode(win.executeJS(sprintf(['W[%d].' props{indP}], ind1-1)));
309
catch
310
% Fallback could be executed recursively for all problematic field
311
% (to keep the most data), but for now do nothing.
0 commit comments