diff --git a/src/imageformats/sct.cpp b/src/imageformats/sct.cpp index 3b2a19a..51b1aab 100644 --- a/src/imageformats/sct.cpp +++ b/src/imageformats/sct.cpp @@ -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; }