Skip to content
Permalink
Browse files

Reset rotation on new project

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Dec 24, 2014
1 parent 1bce9cc commit 11f73e791c501fda975f23c2d3daa5d54f02eb84
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgisapp.cpp
@@ -2119,6 +2119,10 @@ void QgisApp::setupConnections()
connect( this, SIGNAL( projectRead() ),
this, SLOT( checkForDeprecatedLabelsInProject() ) );

// reset rotation on new project
connect( this, SIGNAL( newProject() ),
this, SLOT( resetMapSettings() ) );

// setup undo/redo actions
connect( mUndoWidget, SIGNAL( undoStackChanged() ), this, SLOT( updateUndoActions() ) );
}
@@ -3553,6 +3557,7 @@ void QgisApp::fileNew( bool thePromptToSaveFlag, bool forceBlank )
mMapCanvas->freeze( false );
mMapCanvas->refresh();
mMapCanvas->clearExtentHistory();
mMapCanvas->setRotation(0.0);
mScaleEdit->updateScales();

// set project CRS

0 comments on commit 11f73e7

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