From: Dan MaĊĦek Date: Tue, 15 Nov 2022 00:04:03 +0000 (+0100) Subject: Fix #22766: Corrected off-by one error causing inconsistent row spacing. (rebased... X-Git-Tag: accepted/tizen/unified/20230127.161057~1^2~6^2~22^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5bea2bde4b8485a9051fb68aedaf08d9f7cf569;p=platform%2Fupstream%2Fopencv.git Fix #22766: Corrected off-by one error causing inconsistent row spacing. (rebased to 3.4) --- diff --git a/modules/highgui/src/window_w32.cpp b/modules/highgui/src/window_w32.cpp index 13ad679..8dbff98 100644 --- a/modules/highgui/src/window_w32.cpp +++ b/modules/highgui/src/window_w32.cpp @@ -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 */