1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #22805 from dan-masek:fix_issue_22766

This commit is contained in:
Alexander Alekhin
2022-11-20 22:28:24 +00:00
+1 -1
View File
@@ -2212,7 +2212,7 @@ icvCreateTrackbar( const char* trackbar_name, const char* window_name,
/* Retrieve current buttons count */
bcount = (int)SendMessage(window->toolbar.toolbar, TB_BUTTONCOUNT, 0, 0);
if(bcount > 1)
if (bcount > 0)
{
/* If this is not the first button then we need to
separate it from the previous one */