diff --git a/Util/select_points.m b/Util/select_points.m index 1577529cc..f57628d73 100644 --- a/Util/select_points.m +++ b/Util/select_points.m @@ -34,10 +34,12 @@ delete(rec); else axes(hAx); - k = waitforbuttonpress; + disableDefaultInteractivity(hAx); + waitforbuttonpress; point1 = get(gca, 'CurrentPoint'); % button down detected - finalRect = rbbox; % return figure units + rbbox; % return figure units point2 = get(gca, 'CurrentPoint'); % button up detected + disableDefaultInteractivity(hAx); point1 = point1(1, 1:2); % extract x and y point2 = point2(1, 1:2); p1 = min(point1, point2); % calculate locations