Skip to content
Permalink
Browse files

Fix crash in QgsWmsProvider::htmlMetadata if layer is invalid

  • Loading branch information
github-actions authored and nyalldawson committed Jul 4, 2020
1 parent e990145 commit 7da0f639f708ab8ebd7a713fc2176a5749486f28
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/providers/wms/qgswmsprovider.cpp
@@ -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
{

0 comments on commit 7da0f63

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