Skip to content

Commit 92f4f2d

Browse files
committed
Corrected the version of the hController logic (thanks @gnovice)
See testing at: https://chat.stackoverflow.com/transcript/message/38672352#38672352
1 parent 4ae3a3b commit 92f4f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlapptools.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ function fontColor(uielement, newcolor)
8484
hController = struct(struct(uifigurewindow).Controller);
8585
% Check for Controller version:
8686
switch subsref(ver('matlab'), substruct('.','Version'))
87-
case '9.0' % R2016a
87+
case {'9.0','9.1'} % R2016a or R2016b
8888
win = hController.Container.CEF;
89-
otherwise % R2016b onward
89+
otherwise % R2017a onward
9090
win = struct(hController.PlatformHost).CEF;
9191
end
9292
break

0 commit comments

Comments
 (0)