Skip to content

Commit e576d93

Browse files
committed
fix windows build
1 parent 600888f commit e576d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/raster/qgsrasterblock.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ QImage::Format QgsRasterBlock::imageFormat( QgsRasterBlock::DataType theDataType
115115
{
116116
return QImage::Format_ARGB32_Premultiplied;
117117
}
118-
return QImage::QImage::Format_Invalid;
118+
return QImage::Format_Invalid;
119119
}
120120

121121
QgsRasterBlock::DataType QgsRasterBlock::dataType ( QImage::Format theFormat )
@@ -267,7 +267,7 @@ double QgsRasterBlock::value( int row, int column) const
267267

268268
QRgb QgsRasterBlock::color( size_t index) const
269269
{
270-
int row = floor ( index / mWidth );
270+
int row = floor ( (double)index / mWidth );
271271
int column = index % mWidth;
272272
return color( row, column);
273273
}

0 commit comments

Comments
 (0)