Skip to content
Permalink
Browse files

[BUGFIX] QgsRasterLayer::htmlMetadata(): add back missing Band table …

…header to myMetadata

3.10 regression dating back to f0640ee
  • Loading branch information
rouault authored and nyalldawson committed May 28, 2020
1 parent 5aaeca2 commit 63732838c1d780d82e0739d7aa0a096d30d4f816
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/raster/qgsrasterlayer.cpp
@@ -424,9 +424,9 @@ QString QgsRasterLayer::htmlMetadata() const
QStringLiteral( "<tr><td class=\"highlight\">" ) % tr( "Band count" ) % QStringLiteral( "</td><td>" ) % QString::number( bandCount() ) % QStringLiteral( "</td></tr>\n" );

// Band table
QStringLiteral( "</table>\n<br><table width=\"100%\" class=\"tabular-view\">\n" ) %
QStringLiteral( "<tr><th>" ) % tr( "Number" ) % QStringLiteral( "</th><th>" ) % tr( "Band" ) % QStringLiteral( "</th><th>" ) % tr( "No-Data" ) % QStringLiteral( "</th><th>" ) %
tr( "Min" ) % QStringLiteral( "</th><th>" ) % tr( "Max" ) % QStringLiteral( "</th></tr>\n" );
myMetadata += QStringLiteral( "</table>\n<br><table width=\"100%\" class=\"tabular-view\">\n" ) %
QStringLiteral( "<tr><th>" ) % tr( "Number" ) % QStringLiteral( "</th><th>" ) % tr( "Band" ) % QStringLiteral( "</th><th>" ) % tr( "No-Data" ) % QStringLiteral( "</th><th>" ) %
tr( "Min" ) % QStringLiteral( "</th><th>" ) % tr( "Max" ) % QStringLiteral( "</th></tr>\n" );

QgsRasterDataProvider *provider = const_cast< QgsRasterDataProvider * >( mDataProvider );
for ( int i = 1; i <= bandCount(); i++ )

0 comments on commit 6373283

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