Skip to content

Commit 587b0cc

Browse files
committed
Merge pull request opencv#4200 from Astero92:opencv#3800
2 parents 96fa0ef + f363670 commit 587b0cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/highgui/src/window_QT.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,6 +2591,7 @@ void DefaultViewPort::resizeEvent(QResizeEvent* evnt)
25912591
if (fabs(ratioX - ratioY) * 100 > ratioX) //avoid infinity loop / epsilon = 1% of ratioX
25922592
{
25932593
resize(newSize);
2594+
viewport()->resize(newSize);
25942595

25952596
//move to the middle
25962597
//newSize get the delta offset to place the picture in the middle of its parent

0 commit comments

Comments
 (0)