mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
sct: Use height instead of width when calculating dotsPerMeterY
This commit is contained in:
committed by
Mirco Miranda
parent
25cc8bc262
commit
5d2540c135
@ -221,10 +221,10 @@ public:
|
||||
auto v = QString::fromLatin1(pchar_t(res.data()), res.size()).toDouble(&ok);
|
||||
if (ok && v > 0) {
|
||||
if (m_pb._unitsOfMeasurement) { // Inches
|
||||
return qRound(width() / v / 25.4 * 1000);
|
||||
return qRound(height() / v / 25.4 * 1000);
|
||||
}
|
||||
// Millimeters
|
||||
return qRound(width() / v * 1000);
|
||||
return qRound(height() / v * 1000);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user