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 Oct 13, 2012
1 parent 600888f commit e576d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/raster/qgsrasterblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e576d93

Please sign in to comment.