Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdev committed Apr 28, 2017
1 parent 8d4ba53 commit 1fe7a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion swfiles/sw_status.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function sw_status(percent,varargin)
return
end

if nargin > 2 && ~isempty(varargin{2})
if nargin > 2 && ~isempty(varargin{2}) && ~ischar(varargin{2})
fid = varargin{2};
else
fid = swpref.getpref('tid',[]);
Expand Down
8 changes: 4 additions & 4 deletions swfiles/sw_version.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function varargout = sw_version()
function outStr = sw_version()
% returns the installed version of SpinW
%
% SW_VERSION()
Expand Down Expand Up @@ -105,12 +105,12 @@
if any(revNum)
ver0.Revision = num2str(revNum);
end
varargout{1} = ver0;
outStr = ver0;
else
if isempty(fieldnames(verStruct))
varargout{1} = ver0;
outStr = ver0;
else
varargout{1} = verStruct;
outStr = verStruct;
end
end
end
Expand Down

0 comments on commit 1fe7a83

Please sign in to comment.