Skip to content

Commit 96b5592

Browse files
committedJan 14, 2012
Fix rounding problem for font size in GetLegendGraphic
1 parent 5ed02db commit 96b5592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/mapserver/qgswmsserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ QImage* QgsWMSServer::getLegendGraphics()
308308
{
309309
return 0;
310310
}
311-
double mmToPixelFactor = theImage->dotsPerMeterX() / 1000;
311+
double mmToPixelFactor = theImage->dotsPerMeterX() / 1000.0;
312312
double maxTextWidth = 0;
313313
double maxSymbolWidth = 0;
314314
double currentY = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.