Skip to content

Commit

Permalink
Fix stored spatial extent not showing in metadata tab
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 3, 2018
1 parent e47b714 commit 433d659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsmetadatawidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,9 @@ void QgsMetadataWidget::setPropertiesFromLayer()
if ( ! spatialExtents.isEmpty() )
{
// Even if it's a list, it's supposed to store the same extent in different CRS.
spatialExtentSelector->setCurrentExtent( spatialExtents.at( 0 ).bounds.toRectangle(), spatialExtents.at( 0 ).extentCrs );
spatialExtentSelector->setOutputCrs( spatialExtents.at( 0 ).extentCrs );
spatialExtentSelector->setOriginalExtent( spatialExtents.at( 0 ).bounds.toRectangle(), spatialExtents.at( 0 ).extentCrs );
spatialExtentSelector->setOutputExtentFromOriginal();
spinBoxZMaximum->setValue( spatialExtents.at( 0 ).bounds.zMaximum() );
spinBoxZMinimum->setValue( spatialExtents.at( 0 ).bounds.zMinimum() );
}
Expand Down

0 comments on commit 433d659

Please sign in to comment.