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:
Marko Kangas 2015-04-14 09:42:56 +03:00
parent d605883b5e
commit 336648aa1b

View File

@ -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;