Skip to content

Commit

Permalink
Fix loss of CRS customisation when opening raster properties window
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 15, 2020
1 parent 999ae58 commit 655531d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/raster/qgsrasterlayerproperties.cpp
Expand Up @@ -1153,6 +1153,8 @@ void QgsRasterLayerProperties::apply()
// Update temporal properties
mTemporalWidget->saveTemporalProperties();

mRasterLayer->setCrs( mCrsSelector->crs() );

//get the thumbnail for the layer
QPixmap thumbnail = QPixmap::fromImage( mRasterLayer->previewAsImage( pixmapThumbnail->size() ) );
pixmapThumbnail->setPixmap( thumbnail );
Expand Down

0 comments on commit 655531d

Please sign in to comment.