@@ -190,9 +190,9 @@ void QgsMapRenderer::adjustExtentToSize()
190
190
dymax = mExtent .yMaximum () + whitespace;
191
191
}
192
192
193
- QgsDebugMsg ( QString ( " Map units per pixel (x,y) : %1, %2\n " ).arg ( mapUnitsPerPixelX ).arg ( mapUnitsPerPixelY ) );
194
- QgsDebugMsg ( QString ( " Pixmap dimensions (x,y) : %1, %2\n " ).arg ( myWidth ).arg ( myHeight ) );
195
- QgsDebugMsg ( QString ( " Extent dimensions (x,y) : %1, %2\n " ).arg ( mExtent .width () ).arg ( mExtent .height () ) );
193
+ QgsDebugMsg ( QString ( " Map units per pixel (x,y) : %1, %2\n " ).arg ( mapUnitsPerPixelX, 0 , ' f ' , 8 ).arg ( mapUnitsPerPixelY, 0 , ' f ' , 8 ) );
194
+ QgsDebugMsg ( QString ( " Pixmap dimensions (x,y) : %1, %2\n " ).arg ( myWidth, 0 , ' f ' , 8 ).arg ( myHeight, 0 , ' f ' , 8 ) );
195
+ QgsDebugMsg ( QString ( " Extent dimensions (x,y) : %1, %2\n " ).arg ( mExtent .width (), 0 , ' f ' , 8 ).arg ( mExtent .height (), 0 , ' f ' , 8 ) );
196
196
QgsDebugMsg ( mExtent .toString () );
197
197
198
198
// update extent
@@ -204,7 +204,7 @@ void QgsMapRenderer::adjustExtentToSize()
204
204
// update the scale
205
205
updateScale ();
206
206
207
- QgsDebugMsg ( QString ( " Scale (assuming meters as map units) = 1:%1" ).arg ( mScale ) );
207
+ QgsDebugMsg ( QString ( " Scale (assuming meters as map units) = 1:%1" ).arg ( mScale , 0 , ' f ' , 8 ) );
208
208
209
209
newCoordXForm.setParameters ( mMapUnitsPerPixel , dxmin, dymin, myHeight );
210
210
mRenderContext .setMapToPixel ( newCoordXForm );
0 commit comments