Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 24, 2014
1 parent dd26778 commit 72988e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Expand Up @@ -1647,7 +1647,7 @@ void QgsLinePatternFillSymbolLayer::applyPattern( const QgsSymbolV2RenderContext
width = qAbs( height / tan( lineAngle * M_PI / 180 ) );

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

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

0 comments on commit 72988e9

Please sign in to comment.