Skip to content
Snippets Groups Projects
Commit 1f29319f authored by Houtan Bastani's avatar Houtan Bastani
Browse files

bug: nopathchange was always being set, regardless of whether or not the flag was passed

(cherry picked from commit 41e6ecaa)
parent 2643416d
Branches
Tags
No related merge requests found
......@@ -50,9 +50,9 @@ change_path_flag = true;
% Filter out some options.
if nargin>1
id = strfind(varargin,'nopathchange');
if ~isempty(id)
if ~all(cellfun(@isempty, id))
change_path_flag = false;
varargin(id{1}) = [];
varargin(cellfun(@isempty, id) == 0) = [];
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment