Skip to content

Commit

Permalink
fix: legacy code cannot deal with new arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Spelitz committed Apr 12, 2018
1 parent c213624 commit 41547e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epsclean.m
Expand Up @@ -106,7 +106,7 @@ function epsclean( file, varargin )

fromIndex = 1;
% check for old argument style (backward compatibility)
if nargin >= 2 && ischar(varargin{1}) && ~strcmpi(varargin{1},'removeBoxes') && ~strcmpi(varargin{1},'groupSoft') && ~strcmpi(varargin{1},'combineAreas')
if nargin >= 2 && ischar(varargin{1}) && ~strcmpi(varargin{1},'removeBoxes') && ~strcmpi(varargin{1},'groupSoft') && ~strcmpi(varargin{1},'combineAreas') && ~strcmpi(varargin{1},'closeGaps') && ~strcmpi(varargin{1},'gapWidth')
fromIndex = 2;
outfile = varargin{1};
if nargin >= 3
Expand Down

0 comments on commit 41547e2

Please sign in to comment.