Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Jan 1, 2025
1 parent c568e80 commit 8165ba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qvgraphicsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ void QVGraphicsView::recalculateZoom()
targetRatio = qMax(fitXRatio, fitYRatio);
}
break;
case Qv::CalculatedZoomMode::OriginalSize:
default:
targetRatio = 1.0;
break;
}
Expand Down Expand Up @@ -1127,7 +1127,7 @@ void QVGraphicsView::rotateImage(const int relativeAngle)
{
const QRect oldRect = getContentRect();
const QTransform t = transform();
const bool isMirroredOrFlipped = t.isRotating() ? (t.m12() < 0 == t.m21() < 0) : (t.m11() < 0 != t.m22() < 0);
const bool isMirroredOrFlipped = t.isRotating() ? ((t.m12() < 0) == (t.m21() < 0)) : ((t.m11() < 0) != (t.m22() < 0));
rotate(relativeAngle * (isMirroredOrFlipped ? -1 : 1));
matchContentCenter(oldRect);
}
Expand Down

0 comments on commit 8165ba6

Please sign in to comment.