Skip to content

Commit

Permalink
get rid of terribly designed tag usage for montages
Browse files Browse the repository at this point in the history
  • Loading branch information
bogpetre committed Apr 18, 2024
1 parent 220ebfd commit ad73e17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CanlabCore/Visualization_functions/create_figure.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
doresize = varargin{4};
end

old = findobj('Tag', tagname);
old = old( strcmp( get(old, 'Type'), 'figure' ) );
%old = findobj('Tag', tagname);
%old = old( strcmp( get(old, 'Type'), 'figure' ) );
old = [];

if ~isempty(old)
% Found existing figure window with this tag
Expand Down

0 comments on commit ad73e17

Please sign in to comment.