Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix rounding problem for font size in GetLegendGraphic
  • Loading branch information
mhugent committed Jan 14, 2012
1 parent 5ed02db commit 96b5592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapserver/qgswmsserver.cpp
Expand Up @@ -308,7 +308,7 @@ QImage* QgsWMSServer::getLegendGraphics()
{
return 0;
}
double mmToPixelFactor = theImage->dotsPerMeterX() / 1000;
double mmToPixelFactor = theImage->dotsPerMeterX() / 1000.0;
double maxTextWidth = 0;
double maxSymbolWidth = 0;
double currentY = 0;
Expand Down

0 comments on commit 96b5592

Please sign in to comment.