Fixed metric bug in VObjPaintDevice
--HG-- branch : develop
This commit is contained in:
parent
5f62ce2bde
commit
9301347f3f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user