diff --git a/mscore/svggenerator.cpp b/mscore/svggenerator.cpp index 328c5c97031b7..27bd827d70be2 100644 --- a/mscore/svggenerator.cpp +++ b/mscore/svggenerator.cpp @@ -251,7 +251,7 @@ class SvgPaintEngine : public QPaintEngine #define SVG_QUOTE "\"" #define SVG_COMMA "," #define SVG_GT ">" -#define SVG_PX "px" +#define SVG_MM "mm" #define SVG_NONE "none" #define SVG_EVENODD "evenodd" #define SVG_BUTT "butt" @@ -1033,8 +1033,8 @@ bool SvgPaintEngine::begin(QPaintDevice *) stream() << "" << endl << SVG_BEGIN; if (d->viewBox.isValid()) { // viewBox has floating point values, size width/height is integer - stream() << SVG_WIDTH << d->viewBox.width() << SVG_PX << SVG_QUOTE - << SVG_HEIGHT << d->viewBox.height() << SVG_PX << SVG_QUOTE; + stream() << SVG_WIDTH << d->viewBox.width() / Ms::DPMM << SVG_MM << SVG_QUOTE + << SVG_HEIGHT << d->viewBox.height() / Ms::DPMM << SVG_MM << SVG_QUOTE; stream() << SVG_VIEW_BOX << d->viewBox.left() << SVG_SPACE << d->viewBox.top()