Fix #22766: Corrected off-by one error causing inconsistent row spacing. (rebased to 3.4)

pull/22805/head
Dan Mašek 2 years ago
parent 7592d58f0c
commit e5bea2bde4
  1. 2
      modules/highgui/src/window_w32.cpp

@ -2212,7 +2212,7 @@ icvCreateTrackbar( const char* trackbar_name, const char* window_name,
/* Retrieve current buttons count */ /* Retrieve current buttons count */
bcount = (int)SendMessage(window->toolbar.toolbar, TB_BUTTONCOUNT, 0, 0); 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 /* If this is not the first button then we need to
separate it from the previous one */ separate it from the previous one */

Loading…
Cancel
Save