diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2009-12-29 10:04:58 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2009-12-29 10:07:14 (GMT) |
commit | 4bd7e6930fcd9e04696aa5426691cd90ba383a32 (patch) | |
tree | 7236fa2b6be327606e93c62c96f8ef2236444cb5 /src | |
parent | 84f100353ba8352dc917baefeabb64ea7d5bcacd (diff) | |
download | Qt-4bd7e6930fcd9e04696aa5426691cd90ba383a32.zip Qt-4bd7e6930fcd9e04696aa5426691cd90ba383a32.tar.gz Qt-4bd7e6930fcd9e04696aa5426691cd90ba383a32.tar.bz2 |
Fixed a copy-paste error in QRasterPixmapData::metric().
Calling metric() to get the device height in mm of a pixmap when using
the raster engine would actually return the width..
Task-number: QTBUG-6985
Reviewed-by: Carlos Duclos
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/image/qpixmap_raster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_raster.cpp b/src/gui/image/qpixmap_raster.cpp index 1b01e6f..3c1d7e9 100644 --- a/src/gui/image/qpixmap_raster.cpp +++ b/src/gui/image/qpixmap_raster.cpp @@ -375,7 +375,7 @@ int QRasterPixmapData::metric(QPaintDevice::PaintDeviceMetric metric) const case QPaintDevice::PdmWidthMM: return qRound(d->width * 25.4 / qt_defaultDpiX()); case QPaintDevice::PdmHeightMM: - return qRound(d->width * 25.4 / qt_defaultDpiY()); + return qRound(d->height * 25.4 / qt_defaultDpiY()); case QPaintDevice::PdmNumColors: return d->colortable.size(); case QPaintDevice::PdmDepth: |