Skip to content
Permalink
Browse files

Fix crash in QgsWmsProvider::htmlMetadata if layer is invalid

(cherry picked from commit 32d39d6)
  • Loading branch information
manisandro authored and nyalldawson committed Jul 4, 2020
1 parent 2978c8a commit 1e3558a6d3f94cd08401e80950cd86c6a71f1868
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/providers/wms/qgswmsprovider.cpp
@@ -2386,15 +2386,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 1e3558a

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