diff options
Diffstat (limited to 'src/svg')
-rw-r--r-- | src/svg/qsvggenerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svg/qsvggenerator.cpp b/src/svg/qsvggenerator.cpp index 5d58fa3..cf69b7f 100644 --- a/src/svg/qsvggenerator.cpp +++ b/src/svg/qsvggenerator.cpp @@ -791,6 +791,8 @@ int QSvgGenerator::metric(QPaintDevice::PaintDeviceMetric metric) const return d->engine->resolution(); case QPaintDevice::PdmPhysicalDpiY: return d->engine->resolution(); + case QPaintDevice::PdmDevicePixelRatio: + return 1; default: qWarning("QSvgGenerator::metric(), unhandled metric %d\n", metric); break; |