Skip to content

Commit 678549f

Browse files
committed
fix windows build
1 parent 557a124 commit 678549f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/analysis/raster/qgsrastermatrix.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ bool QgsRasterMatrix::oneArgumentOperation( OneArgOperator op )
217217
mData[i] = static_cast<float>( atan( value ) );
218218
break;
219219
case opSIGN:
220-
mData[i] = -value;
220+
mData[i] = static_cast<float>( -value );
221221
}
222222
}
223223
}

src/core/symbology-ng/qgsfillsymbollayerv2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ void QgsLinePatternFillSymbolLayer::startRender( QgsSymbolV2RenderContext& conte
437437

438438
//find a suitable multiple of width and heigh
439439

440-
QImage patternImage( fabs( width ), height, QImage::Format_ARGB32 );
440+
QImage patternImage( qAbs( width ), height, QImage::Format_ARGB32 );
441441
patternImage.fill( 0 );
442442
QPainter p( &patternImage );
443443
p.setRenderHint( QPainter::Antialiasing, true );

0 commit comments

Comments
 (0)