Skip to content

Commit

Permalink
highgui(win32): fix trackbar setRange
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Nov 6, 2021
1 parent 7842181 commit a271671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/highgui/src/window_w32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,7 @@ class Win32UITrackbar : public UITrackbar
CvTrackbar& trackbar = *trackbar_ptr;
CV_CheckLE(range.start, range.end, "Invalid trackbar range");
trackbar.minval = range.start;
trackbar.maxval = range.start;
trackbar.maxval = range.end;
SendMessage(trackbar.hwnd, TBM_SETRANGEMIN, (WPARAM)TRUE, (LPARAM)trackbar.minval);
SendMessage(trackbar.hwnd, TBM_SETRANGEMAX, (WPARAM)TRUE, (LPARAM)trackbar.maxval);
}
Expand Down

0 comments on commit a271671

Please sign in to comment.