We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54a1d0b commit 1fc23c0Copy full SHA for 1fc23c0
mlapptools.m
@@ -61,11 +61,13 @@ function fontColor(uielement, newcolor)
61
tic
62
while true && (toc < mlapptools.TIMEOUT)
63
try
64
- % Add check for container change in R2017a (version 9.2)
65
- if verLessThan('matlab', '9.2')
66
- win = struct(struct(uifigurewindow).Controller).Container.CEF;
67
- else
68
- win = struct(struct(struct(uifigurewindow).Controller).PlatformHost).CEF;
+ hController = struct(struct(uifigurewindow).Controller);
+ % Check for Controller version:
+ switch subsref(ver('matlab'), substruct('.','Version'))
+ case '9.0' % R2016a
+ win = hController.Container.CEF;
69
+ otherwise % R2016b onward
70
+ win = struct(hController.PlatformHost).CEF;
71
end
72
break
73
catch err
0 commit comments