Skip to content
Snippets Groups Projects
Verified Commit abde3a60 authored by leprob001's avatar leprob001
Browse files

fix: A polygon can now be closed when picked positions >= 3

parent 99f56755
No related branches found
No related tags found
No related merge requests found
356
\ No newline at end of file
357
......@@ -122,7 +122,7 @@ return
function finishPolygon()
% close the poligon by adding the first value as the last one
if length(artoaGui.editTimeOfArrival.tmpPolygon.x) > 3 % a polygon can only be closed if there are more than three values
if length(artoaGui.editTimeOfArrival.tmpPolygon.x) >= 3 % a polygon can only be closed if there are more than three values
x = [artoaGui.editTimeOfArrival.tmpPolygon.x; artoaGui.editTimeOfArrival.tmpPolygon.x(1)];
y = [artoaGui.editTimeOfArrival.tmpPolygon.y; artoaGui.editTimeOfArrival.tmpPolygon.y(1)];
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment