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
(cherry picked from commit 32d39d6)
  • Loading branch information
manisandro authored and nyalldawson committed Jul 4, 2020
1 parent 2978c8a commit 1e3558a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 1e3558a

Please sign in to comment.