Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reset rotation on new project
  • Loading branch information
Sandro Santilli committed Dec 24, 2014
1 parent 1bce9cc commit 11f73e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -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() ) );
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 11f73e7

Please sign in to comment.