Skip to content

Commit

Permalink
Remove overzealous assert when a RAT has neither a name or generic fi…
Browse files Browse the repository at this point in the history
…eld usage

Found when testing with rasters found in the wild
  • Loading branch information
nyalldawson committed Nov 19, 2022
1 parent 5dc11e0 commit df347ec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/raster/qgsrasterattributetable.cpp
Expand Up @@ -1283,7 +1283,6 @@ QList<QgsRasterAttributeTable::MinMaxClass> QgsRasterAttributeTable::minMaxClass
else
{
classificationIndex = fieldUsages.indexOf( Qgis::RasterAttributeTableFieldUsage::Generic );
Q_ASSERT( classificationIndex >= 0 );
}
}
else if ( classificationIndex >= mFields.count( ) )
Expand Down

0 comments on commit df347ec

Please sign in to comment.