@ -1034,7 +1034,11 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::writeSvgElement()
mXmlWriter . writeAttribute ( UBSettings : : uniboardDocumentNamespaceUri , " crossed-background " , mScene - > isCrossedBackground ( ) ? xmlTrue : xmlFalse ) ;
mXmlWriter . writeAttribute ( UBSettings : : uniboardDocumentNamespaceUri , " crossed-background " , mScene - > isCrossedBackground ( ) ? xmlTrue : xmlFalse ) ;
QDesktopWidget * desktop = UBApplication : : desktop ( ) ;
QDesktopWidget * desktop = UBApplication : : desktop ( ) ;
mXmlWriter . writeAttribute ( " pageDpi " , QString ( " %1 " ) . arg ( ( desktop - > physicalDpiX ( ) + desktop - > physicalDpiY ( ) ) / 2 ) ) ;
if ( UBSettings : : settings ( ) - > pageDpi - > get ( ) ! = 0 )
mXmlWriter . writeAttribute ( " pageDpi " , ( UBSettings : : settings ( ) - > pageDpi - > get ( ) ) . toString ( ) ) ;
else
mXmlWriter . writeAttribute ( " pageDpi " , QString ( " %1 " ) . arg ( ( desktop - > physicalDpiX ( ) + desktop - > physicalDpiY ( ) ) / 2 ) ) ;
mXmlWriter . writeStartElement ( " rect " ) ;
mXmlWriter . writeStartElement ( " rect " ) ;
mXmlWriter . writeAttribute ( " fill " , mScene - > isDarkBackground ( ) ? " black " : " white " ) ;
mXmlWriter . writeAttribute ( " fill " , mScene - > isDarkBackground ( ) ? " black " : " white " ) ;