File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ QgsMapRenderer::QgsMapRenderer()
51
51
mProjectionsEnabled = FALSE ;
52
52
mDestCRS = new QgsCoordinateReferenceSystem ( GEO_EPSG_CRS_ID, QgsCoordinateReferenceSystem::EpsgCrsId ); // WGS 84
53
53
54
- mOutputUnits = QgsMapRenderer::MM ;
54
+ mOutputUnits = QgsMapRenderer::Millimeters ;
55
55
}
56
56
57
57
QgsMapRenderer::~QgsMapRenderer ()
@@ -241,7 +241,7 @@ void QgsMapRenderer::render( QPainter* painter )
241
241
// because sometimes QPainter units are in a local coord sys (e.g. in case of QGraphicsScene)
242
242
double sceneDpi = mScaleCalculator ->dpi ();
243
243
double scaleFactor = 1.0 ;
244
- if ( mOutputUnits == QgsMapRenderer::MM )
244
+ if ( mOutputUnits == QgsMapRenderer::Millimeters )
245
245
{
246
246
scaleFactor = sceneDpi / 25.4 ;
247
247
}
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ class CORE_EXPORT QgsMapRenderer : public QObject
47
47
/* *Output units for pen width and point marker width/height*/
48
48
enum OutputUnits
49
49
{
50
- MM, // millimeters
51
- PIXEL
50
+ Millimeters,
51
+ Pixels
52
52
// MAP_UNITS probably supported in future versions
53
53
};
54
54
You can’t perform that action at this time.
0 commit comments