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;