Skip to content

Commit 72988e9

Browse files
committed
fix windows build
1 parent dd26778 commit 72988e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/symbology-ng/qgsfillsymbollayerv2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ void QgsLinePatternFillSymbolLayer::applyPattern( const QgsSymbolV2RenderContext
16471647
width = qAbs( height / tan( lineAngle * M_PI / 180 ) );
16481648

16491649
// recalculate real angle and distance after rounding to pixels
1650-
lineAngle = 180 * qAbs( atan2( height, width ) ) / M_PI;
1650+
lineAngle = 180 * qAbs( atan2(( double ) height, ( double ) width ) ) / M_PI;
16511651
outputPixelDist = height * cos( lineAngle * M_PI / 180 );
16521652

16531653
// Round offset to correspond to one pixel height, otherwise lines may

0 commit comments

Comments
 (0)