Skip to content
Permalink
Browse files

fix windows build

  • Loading branch information
jef-n committed Oct 13, 2012
1 parent 600888f commit e576d93b5f6ee96c44f797297a0a1212e55e1d6b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/raster/qgsrasterblock.cpp
@@ -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);
}

0 comments on commit e576d93

Please sign in to comment.
You can’t perform that action at this time.