Fixed metric bug in VObjPaintDevice

--HG--
branch : develop
This commit is contained in:
val177 2015-09-12 01:24:39 +03:00
parent 5f62ce2bde
commit 9301347f3f

View File

@ -156,6 +156,8 @@ int VObjPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const
return engine->getResolution(); return engine->getResolution();
case QPaintDevice::PdmPhysicalDpiY: case QPaintDevice::PdmPhysicalDpiY:
return engine->getResolution(); return engine->getResolution();
case QPaintDevice::PdmDevicePixelRatio:
return 1;
default: default:
qWarning("VObjPaintDevice::metric(), unhandled metric %d\n", metric); qWarning("VObjPaintDevice::metric(), unhandled metric %d\n", metric);
break; break;