Skip to content

Commit 64d94e9

Browse files
committed
- no ambiguity about last rect (complement #459 and bd20972);
- remove double-check, make MSVC happy
1 parent 029559a commit 64d94e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/tracking/src/roiSelector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ namespace cv {
161161
printf("Finish the selection process by pressing ESC button!\n" );
162162

163163
// while key is not ESC (27)
164-
while(key!=27){
164+
for(;;) {
165165
temp=select(windowName, img, true, fromCenter);
166+
if(key==27) break;
166167
if(temp.width>0 && temp.height>0)
167168
box.push_back(temp);
168169
}

0 commit comments

Comments
 (0)