From 9301347f3fbd9adcc8a69314e072de082c016eea Mon Sep 17 00:00:00 2001 From: val177 Date: Sat, 12 Sep 2015 01:24:39 +0300 Subject: [PATCH] Fixed metric bug in VObjPaintDevice --HG-- branch : develop --- src/libs/vobj/vobjpaintdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/vobj/vobjpaintdevice.cpp b/src/libs/vobj/vobjpaintdevice.cpp index d6cb8c45d..f20585541 100644 --- a/src/libs/vobj/vobjpaintdevice.cpp +++ b/src/libs/vobj/vobjpaintdevice.cpp @@ -156,6 +156,8 @@ int VObjPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const return engine->getResolution(); case QPaintDevice::PdmPhysicalDpiY: return engine->getResolution(); + case QPaintDevice::PdmDevicePixelRatio: + return 1; default: qWarning("VObjPaintDevice::metric(), unhandled metric %d\n", metric); break;