mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
sct: Use height instead of width when calculating dotsPerMeterY
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user