Fix windows printing "invalid metric command" warning.
Added missing PdmDevicePixelRatio return value to printEngine::metric. Change-Id: I40198208ff7c95aa30b0492c410b450a1ae16a30 Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
parent
d605883b5e
commit
336648aa1b
@ -384,6 +384,9 @@ int QWin32PrintEngine::metric(QPaintDevice::PaintDeviceMetric m) const
|
||||
case QPaintDevice::PdmDepth:
|
||||
val = GetDeviceCaps(d->hdc, PLANES);
|
||||
break;
|
||||
case QPaintDevice::PdmDevicePixelRatio:
|
||||
val = 1;
|
||||
break;
|
||||
default:
|
||||
qWarning("QPrinter::metric: Invalid metric command");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user