mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix msvc build
This commit is contained in:
parent
a4a8b4cc76
commit
d6dcc72bf3
@ -122,7 +122,6 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con
|
||||
{
|
||||
return outputBlock;
|
||||
}
|
||||
QRgb myDefaultColor = NODATA_COLOR;
|
||||
|
||||
//QGis::DataType transparencyType = QGis::UnknownDataType;
|
||||
//if ( mAlphaBand > 0 )
|
||||
@ -172,7 +171,7 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con
|
||||
}
|
||||
|
||||
//create copy of color table with nodata values replaced by fully transparent color
|
||||
QRgb colorTable[mNColors];
|
||||
QVector<QRgb> colorTable(mNColors);
|
||||
for ( int i = 0; i < mNColors; ++i )
|
||||
{
|
||||
if ( inputBlock->isNoDataValue( i ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user