File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -450,8 +450,9 @@ void QgsMetadataWidget::setPropertiesFromLayer()
450
450
if ( ! spatialExtents.isEmpty () )
451
451
{
452
452
// 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 );
454
453
spatialExtentSelector->setOutputCrs ( spatialExtents.at ( 0 ).extentCrs );
454
+ spatialExtentSelector->setOriginalExtent ( spatialExtents.at ( 0 ).bounds .toRectangle (), spatialExtents.at ( 0 ).extentCrs );
455
+ spatialExtentSelector->setOutputExtentFromOriginal ();
455
456
spinBoxZMaximum->setValue ( spatialExtents.at ( 0 ).bounds .zMaximum () );
456
457
spinBoxZMinimum->setValue ( spatialExtents.at ( 0 ).bounds .zMinimum () );
457
458
}
You can’t perform that action at this time.
0 commit comments