Skip to content

Commit 93405b1

Browse files
committedJun 10, 2011
Improve formatting of debug output for maprenderer map dimentions
1 parent fd23573 commit 93405b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/core/qgsmaprenderer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ void QgsMapRenderer::adjustExtentToSize()
190190
dymax = mExtent.yMaximum() + whitespace;
191191
}
192192

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 ) );
196196
QgsDebugMsg( mExtent.toString() );
197197

198198
// update extent
@@ -204,7 +204,7 @@ void QgsMapRenderer::adjustExtentToSize()
204204
// update the scale
205205
updateScale();
206206

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 ) );
208208

209209
newCoordXForm.setParameters( mMapUnitsPerPixel, dxmin, dymin, myHeight );
210210
mRenderContext.setMapToPixel( newCoordXForm );

0 commit comments

Comments
 (0)
Please sign in to comment.