We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 7e97033 commit a003f74Copy full SHA for a003f74
src/core/composer/qgscomposerhtml.cpp
@@ -18,7 +18,6 @@
18
#include "qgscomposition.h"
19
#include "qgsaddremovemultiframecommand.h"
20
#include <QCoreApplication>
21
-#include <QImage>
22
#include <QPainter>
23
#include <QWebFrame>
24
#include <QWebPage>
@@ -108,9 +107,7 @@ double QgsComposerHtml::htmlUnitsToMM()
108
107
return 1.0;
109
}
110
111
- QImage img( 1, 1, QImage::Format_ARGB32_Premultiplied );
112
- double pixelPerMM = mComposition->printResolution() / 25.4;
113
- return ( pixelPerMM / ( img.dotsPerMeterX() / 1000.0 ) );
+ return ( mComposition->printResolution() / 96.0 ); //webkit seems to assume a standard dpi of 96
114
115
116
void QgsComposerHtml::addFrame( QgsComposerFrame* frame, bool addCommand )
0 commit comments