Skip to content
Permalink
Browse files

Fix rounding problem for font size in GetLegendGraphic

  • Loading branch information
mhugent committed Jan 14, 2012
1 parent 5ed02db commit 96b5592c5071a791af78214a9a95b09ed4fa88b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mapserver/qgswmsserver.cpp
@@ -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;

0 comments on commit 96b5592

Please sign in to comment.
You can’t perform that action at this time.