Skip to content

Commit

Permalink
WGS84 extent is null if the extent is null
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Mar 10, 2021
1 parent fd965af commit 6667472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.cpp
Expand Up @@ -2020,7 +2020,7 @@ QgsRectangle QgsMapLayer::wgs84Extent( bool forceRecalculate ) const
{
wgs84Extent = mWgs84Extent;
}
else
else if ( ! mExtent.isNull() )
{
const QgsCoordinateTransform transformer { crs(), QgsCoordinateReferenceSystem::fromOgcWmsCrs( geoEpsgCrsAuthId() ), transformContext() };
try
Expand Down

0 comments on commit 6667472

Please sign in to comment.