Skip to content
Snippets Groups Projects
Commit c1549c02 authored by Eric Wait's avatar Eric Wait
Browse files

Viewer windows closes matlab window bug fixed

parent be7edecd
Branches
Tags
No related merge requests found
function CheckMessage()
global uiFigureHandle Hulls selectedHull trackHulls familyHulls uiControlHandles
global uiControlFig Hulls selectedHull trackHulls familyHulls uiControlHandles
persistent shift ctrl alt selectedHullsList
msgs = lever_3d('poll');
......@@ -13,7 +13,7 @@ for i=1:length(msgs)
case 'null'
return
case 'close'
close(uiFigureHandle);
close(uiControlFig);
case 'cellSelected'
if (msgs(i).val == -1)
lever_3d('viewSegmentation',1);
......@@ -64,7 +64,7 @@ for i=1:length(msgs)
alt = 1;
elseif (strcmp(msgs(i).message,'number'))
num = msgs(i).val;
if (~isempty(selectedHull) && selectedHull>0)
if (~isempty(selectedHull) && selectedHull>0 && num>1)
SplitHull(selectedHull,num);
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment