Skip to content
Permalink
Browse files

Store initial extent as DefaultViewExtent in view settings

(cherry picked from commit 0c8952e)
  • Loading branch information
elpaso authored and nyalldawson committed Nov 20, 2020
1 parent e51a263 commit 03bef698d6741c928d95af75ec769446851b7c65
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -7211,6 +7211,9 @@ bool QgisApp::fileSave()
}
}

// Store current map view settings into the project
QgsProject::instance()->viewSettings()->setDefaultViewExtent( QgsReferencedRectangle( mapCanvas()->extent(), QgsProject::instance()->crs() ) );

if ( QgsProject::instance()->write() )
{
setTitleBarText_( *this ); // update title bar

0 comments on commit 03bef69

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