Skip to content
Permalink
Browse files
fix msvc build errors
git-svn-id: http://svn.osgeo.org/qgis/trunk@13730 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jun 14, 2010
1 parent 76d2a8f commit 344ed629d94994e295e7900376a9789041d177c1
@@ -40,7 +40,7 @@ class CORE_EXPORT QgsRuleBasedRendererV2 : public QgsFeatureRendererV2
If one of the min/max scale denominators is zero, there is no lower/upper bound for scales.
A rule matches if both filter and scale range match.
*/
class Rule
class CORE_EXPORT Rule
{
public:
//! Constructor takes ownership of the symbol
@@ -116,16 +116,16 @@ void QgsResidualPlotItem::paint( QPainter* painter, const QStyleOptionGraphicsIt
if ( scaleBarWidthUnits < 1 )
{
nDecPlaces = -floor( log10( scaleBarWidthUnits ) );
scaleBarWidthUnits *= pow( 10, nDecPlaces );
scaleBarWidthUnits *= pow( 10.0, nDecPlaces );
scaleBarWidthUnits = ( int )( scaleBarWidthUnits + 0.5 );
scaleBarWidthUnits /= pow( 10, nDecPlaces );
scaleBarWidthUnits /= pow( 10.0, nDecPlaces );
}
else
{
nDecPlaces = ( int )log10( scaleBarWidthUnits );
scaleBarWidthUnits /= pow( 10, nDecPlaces );
scaleBarWidthUnits /= pow( 10.0, nDecPlaces );
scaleBarWidthUnits = ( int )( scaleBarWidthUnits + 0.5 );
scaleBarWidthUnits *= pow( 10, nDecPlaces );
scaleBarWidthUnits *= pow( 10.0, nDecPlaces );
}
initialScaleBarWidth = scaleBarWidthUnits * minMMPixelRatio;

0 comments on commit 344ed62

Please sign in to comment.