1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(video): Fix square form of a video

Use right sign to compare NON-equal double numbers
This commit is contained in:
Diadlo 2017-12-04 00:43:11 +03:00
parent 8db61f96ec
commit 8de8c14a76
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -150,7 +150,7 @@ void VideoSurface::onNewFrameAvailable(const std::shared_ptr<VideoFrame>& newFra
float newRatio = getSizeRatio(newSize);
if (qAbs(newRatio - ratio) < 1E-3 && isVisible()) {
if (qAbs(newRatio - ratio) > 1E-3 && isVisible()) {
ratio = newRatio;
recalulateBounds();
emit ratioChanged();