From 24f92067c544ffac2e1c539eca64c5f287601f47 Mon Sep 17 00:00:00 2001 From: Olivier Burri Date: Thu, 29 Jun 2017 15:00:55 +0200 Subject: [PATCH] Fixes error when it does not find the ImarisLib.jar file --- EasyXT.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EasyXT.m b/EasyXT.m index 0e52210..ad8a6f7 100644 --- a/EasyXT.m +++ b/EasyXT.m @@ -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'];