Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix stored spatial extent not showing in metadata tab
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+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() ); |
|
|
} |
|
|