fix rotation

This commit is contained in:
Dennis Eichhorn 2022-09-06 10:45:23 +02:00
parent 40efcb8a66
commit cd71fb74b1

View File

@ -46,7 +46,7 @@ namespace Image {
std::vector<float> angles;
for (int i = 0; i < tmpAngles.size(); ++i) {
if (imageOrientation > 0) {
if (oms_deg2rad(90 - maxDegree) < oms_abs(tmpAngles[i]) < oms_deg2rad(90 + maxDegree)) {
if (oms_deg2rad(90 - maxDegree) < oms_abs(tmpAngles[i]) && oms_abs(tmpAngles[i]) < oms_deg2rad(90 + maxDegree)) {
angles.push_back(tmpAngles[i]);
}
} else {