We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd26778 commit 72988e9Copy full SHA for 72988e9
src/core/symbology-ng/qgsfillsymbollayerv2.cpp
@@ -1647,7 +1647,7 @@ void QgsLinePatternFillSymbolLayer::applyPattern( const QgsSymbolV2RenderContext
1647
width = qAbs( height / tan( lineAngle * M_PI / 180 ) );
1648
1649
// recalculate real angle and distance after rounding to pixels
1650
- lineAngle = 180 * qAbs( atan2( height, width ) ) / M_PI;
+ lineAngle = 180 * qAbs( atan2(( double ) height, ( double ) width ) ) / M_PI;
1651
outputPixelDist = height * cos( lineAngle * M_PI / 180 );
1652
1653
// Round offset to correspond to one pixel height, otherwise lines may
0 commit comments