Skip to content
Permalink
Browse files

Store initial extent as DefaultViewExtent in view settings

  • Loading branch information
elpaso committed Nov 17, 2020
1 parent 13a43de commit 0c8952edfb9e8c2f1e1602772131c1ebf35b8b25
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -7298,6 +7298,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 0c8952e

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