Skip to content

Commit 11f73e7

Browse files
author
Sandro Santilli
committedDec 24, 2014
Reset rotation on new project
Closes http://hub.qgis.org/issues/11832
1 parent 1bce9cc commit 11f73e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,10 @@ void QgisApp::setupConnections()
21192119
connect( this, SIGNAL( projectRead() ),
21202120
this, SLOT( checkForDeprecatedLabelsInProject() ) );
21212121

2122+
// reset rotation on new project
2123+
connect( this, SIGNAL( newProject() ),
2124+
this, SLOT( resetMapSettings() ) );
2125+
21222126
// setup undo/redo actions
21232127
connect( mUndoWidget, SIGNAL( undoStackChanged() ), this, SLOT( updateUndoActions() ) );
21242128
}
@@ -3553,6 +3557,7 @@ void QgisApp::fileNew( bool thePromptToSaveFlag, bool forceBlank )
35533557
mMapCanvas->freeze( false );
35543558
mMapCanvas->refresh();
35553559
mMapCanvas->clearExtentHistory();
3560+
mMapCanvas->setRotation(0.0);
35563561
mScaleEdit->updateScales();
35573562

35583563
// set project CRS

0 commit comments

Comments
 (0)
Please sign in to comment.