Commit 587b0cc7 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #4200 from Astero92:#3800

parents 96fa0ef7 f3636709
......@@ -2591,6 +2591,7 @@ void DefaultViewPort::resizeEvent(QResizeEvent* evnt)
if (fabs(ratioX - ratioY) * 100 > ratioX) //avoid infinity loop / epsilon = 1% of ratioX
{
resize(newSize);
viewport()->resize(newSize);
//move to the middle
//newSize get the delta offset to place the picture in the middle of its parent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment