mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
fix windows build
This commit is contained in:
parent
600888fe7a
commit
e576d93b5f
@ -115,7 +115,7 @@ QImage::Format QgsRasterBlock::imageFormat( QgsRasterBlock::DataType theDataType
|
||||
{
|
||||
return QImage::Format_ARGB32_Premultiplied;
|
||||
}
|
||||
return QImage::QImage::Format_Invalid;
|
||||
return QImage::Format_Invalid;
|
||||
}
|
||||
|
||||
QgsRasterBlock::DataType QgsRasterBlock::dataType ( QImage::Format theFormat )
|
||||
@ -267,7 +267,7 @@ double QgsRasterBlock::value( int row, int column) const
|
||||
|
||||
QRgb QgsRasterBlock::color( size_t index) const
|
||||
{
|
||||
int row = floor ( index / mWidth );
|
||||
int row = floor ( (double)index / mWidth );
|
||||
int column = index % mWidth;
|
||||
return color( row, column);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user