Skip to content

Commit d6dcc72

Browse files
committed
fix msvc build
1 parent a4a8b4c commit d6dcc72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/raster/qgspalettedrasterrenderer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con
122122
{
123123
return outputBlock;
124124
}
125-
QRgb myDefaultColor = NODATA_COLOR;
126125

127126
//QGis::DataType transparencyType = QGis::UnknownDataType;
128127
//if ( mAlphaBand > 0 )
@@ -172,7 +171,7 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con
172171
}
173172

174173
//create copy of color table with nodata values replaced by fully transparent color
175-
QRgb colorTable[mNColors];
174+
QVector<QRgb> colorTable(mNColors);
176175
for ( int i = 0; i < mNColors; ++i )
177176
{
178177
if ( inputBlock->isNoDataValue( i ) )

0 commit comments

Comments
 (0)