Skip to content

Commit

Permalink
Fix crash in QgsWmsProvider::htmlMetadata if layer is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Jul 4, 2020
1 parent e990145 commit 7da0f63
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -2371,15 +2371,15 @@ QString QgsWmsProvider::htmlMetadata()
metadata += QStringLiteral( "%1:%2<br>" ).arg( it.key(), it.value() );
}
metadata += QStringLiteral( "</td></tr>" );
}

// GetFeatureInfo Request Formats
metadata += QStringLiteral( "<tr><td>" ) %
tr( "Identify Formats" ) %
QStringLiteral( "</td>"
"<td>" ) %
mTileLayer->infoFormats.join( QStringLiteral( "<br />" ) ) %
QStringLiteral( "</td></tr>" );
// GetFeatureInfo Request Formats
metadata += QStringLiteral( "<tr><td>" ) %
tr( "Identify Formats" ) %
QStringLiteral( "</td>"
"<td>" ) %
mTileLayer->infoFormats.join( QStringLiteral( "<br />" ) ) %
QStringLiteral( "</td></tr>" );
}
}
else
{
Expand Down

0 comments on commit 7da0f63

Please sign in to comment.