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

Merge pull request #22255 from r2d3:python_trackbar_macos

This commit is contained in:
Alexander Alekhin
2022-07-16 07:40:40 +00:00
+1 -1
View File
@@ -1201,7 +1201,7 @@ static NSSize constrainAspectRatio(NSSize base, NSSize constraint) {
(void)notification;
int pos = [slider intValue];
NSString *temp = [self initialName];
NSString *text = [NSString stringWithFormat:@"%@ %d", temp, *value];
NSString *text = [NSString stringWithFormat:@"%@ %d", temp, pos];
[name setStringValue: text];
if(value)
*value = pos;