Skip to content

Commit

Permalink
Fixes error when it does not find the ImarisLib.jar file
Browse files Browse the repository at this point in the history
  • Loading branch information
lacan committed Jun 29, 2017
1 parent 8656dd0 commit 24f9206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EasyXT.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
eXT.imarisPath = eXT.imarisPath(1:(end-1));
eXT.imarisLibPath = [eXT.imarisPath, 'XT\matlab\ImarisLib.jar'];

if (nargin == 1 && strcmp(varargin{1}, 'setup')) || strcmp(eXT.imarisPath, '')
if (nargin == 1 && strcmp(varargin{1}, 'setup')) || strcmp(eXT.imarisPath, '') || (exist(eXT.imarisLibPath,'file') ~= 2)
[~,PathName] = uigetfile('.exe','Location of Imaris executable');
eXT.imarisPath = PathName;
eXT.imarisLibPath = [PathName, 'XT\matlab\ImarisLib.jar'];
Expand Down

0 comments on commit 24f9206

Please sign in to comment.