Skip to content

Commit

Permalink
Fix rotaion bug for png images
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain92 committed Mar 6, 2021
1 parent c541332 commit f01b12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageprocessingnative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ QImage processImageN(const QByteArray &buffer, const QString &filepath, QSize sc

rot90 = calcRotationInfo(img.size(), screenSize, doublePageMode);

if (rot90 <= 0)
if (rot90 != 0)
img = img.rotate(rot90);
}
else if (isJpeg(buffer))
Expand Down

0 comments on commit f01b12c

Please sign in to comment.