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 8a0a723 commit 54a1d0bCopy full SHA for 54a1d0b
mlapptools.m
@@ -50,8 +50,13 @@ function fontColor(uielement, newcolor)
50
51
methods (Static, Access = private)
52
function [win] = getWebWindow(uifigurewindow)
53
- % TODO: Check that we've been passed an app designer figure window
54
mlapptools.togglewarnings('off')
+ % Test if uifigurewindow is a valid handle
55
+ if ~isa(uifigurewindow,'matlab.ui.Figure') || ...
56
+ isempty(struct(uifigurewindow).ControllerInfo)
57
+ msgID = 'mlapptools:getWebWindow:NotUIFigure';
58
+ error(msgID, 'The provided window handle is not of a UIFigure.');
59
+ end
60
61
tic
62
while true && (toc < mlapptools.TIMEOUT)
0 commit comments