Merge pull request #21016 from alalek:issue_21002

pull/21027/head
Alexander Alekhin 3 years ago
commit ceb94d52a1
  1. 2
      modules/highgui/src/window_w32.cpp

@ -2984,7 +2984,7 @@ public:
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);
}

Loading…
Cancel
Save