Skip to content

Commit d885491

Browse files
author
mhugent
committedJun 14, 2010
fix msvc build errors
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13730 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎src/core/symbology-ng/qgsrulebasedrendererv2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CORE_EXPORT QgsRuleBasedRendererV2 : public QgsFeatureRendererV2
4040
If one of the min/max scale denominators is zero, there is no lower/upper bound for scales.
4141
A rule matches if both filter and scale range match.
4242
*/
43-
class Rule
43+
class CORE_EXPORT Rule
4444
{
4545
public:
4646
//! Constructor takes ownership of the symbol

‎src/plugins/georeferencer/qgsresidualplotitem.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,16 @@ void QgsResidualPlotItem::paint( QPainter* painter, const QStyleOptionGraphicsIt
116116
if ( scaleBarWidthUnits < 1 )
117117
{
118118
nDecPlaces = -floor( log10( scaleBarWidthUnits ) );
119-
scaleBarWidthUnits *= pow( 10, nDecPlaces );
119+
scaleBarWidthUnits *= pow( 10.0, nDecPlaces );
120120
scaleBarWidthUnits = ( int )( scaleBarWidthUnits + 0.5 );
121-
scaleBarWidthUnits /= pow( 10, nDecPlaces );
121+
scaleBarWidthUnits /= pow( 10.0, nDecPlaces );
122122
}
123123
else
124124
{
125125
nDecPlaces = ( int )log10( scaleBarWidthUnits );
126-
scaleBarWidthUnits /= pow( 10, nDecPlaces );
126+
scaleBarWidthUnits /= pow( 10.0, nDecPlaces );
127127
scaleBarWidthUnits = ( int )( scaleBarWidthUnits + 0.5 );
128-
scaleBarWidthUnits *= pow( 10, nDecPlaces );
128+
scaleBarWidthUnits *= pow( 10.0, nDecPlaces );
129129
}
130130
initialScaleBarWidth = scaleBarWidthUnits * minMMPixelRatio;
131131

0 commit comments

Comments
 (0)
Please sign in to comment.