Browse Source

fix(video): Fix square form of a video

Use right sign to compare NON-equal double numbers
pull/4850/head
Diadlo 8 years ago
parent
commit
8de8c14a76
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 2
      src/video/videosurface.cpp

2
src/video/videosurface.cpp

@ -150,7 +150,7 @@ void VideoSurface::onNewFrameAvailable(const std::shared_ptr<VideoFrame>& newFra @@ -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();

Loading…
Cancel
Save