Skip to content

Commit 433d659

Browse files
committedJan 3, 2018
Fix stored spatial extent not showing in metadata tab
1 parent e47b714 commit 433d659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/gui/qgsmetadatawidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,9 @@ void QgsMetadataWidget::setPropertiesFromLayer()
450450
if ( ! spatialExtents.isEmpty() )
451451
{
452452
// Even if it's a list, it's supposed to store the same extent in different CRS.
453-
spatialExtentSelector->setCurrentExtent( spatialExtents.at( 0 ).bounds.toRectangle(), spatialExtents.at( 0 ).extentCrs );
454453
spatialExtentSelector->setOutputCrs( spatialExtents.at( 0 ).extentCrs );
454+
spatialExtentSelector->setOriginalExtent( spatialExtents.at( 0 ).bounds.toRectangle(), spatialExtents.at( 0 ).extentCrs );
455+
spatialExtentSelector->setOutputExtentFromOriginal();
455456
spinBoxZMaximum->setValue( spatialExtents.at( 0 ).bounds.zMaximum() );
456457
spinBoxZMinimum->setValue( spatialExtents.at( 0 ).bounds.zMinimum() );
457458
}

0 commit comments

Comments
 (0)
Please sign in to comment.