Skip to content
Permalink
Browse files

Fix stored spatial extent not showing in metadata tab

  • Loading branch information
nyalldawson committed Jan 2, 2018
1 parent e47b714 commit 433d6594de97a7444650d4bebb97a33bc3d0ce32
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsmetadatawidget.cpp
@@ -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() );
}

0 comments on commit 433d659

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