Skip to content

Commit 204e710

Browse files
committed
enable canvas rotation support by default
1 parent 93e2226 commit 204e710

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/qgisapp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ void QgisApp::createStatusBar()
17261726
statusBar()->addPermanentWidget( mScaleEdit, 0 );
17271727
connect( mScaleEdit, SIGNAL( scaleChanged() ), this, SLOT( userScale() ) );
17281728

1729-
if ( QSettings().value( "/qgis/canvasRotation", false ).toBool() )
1729+
if ( QSettings().value( "/qgis/canvasRotation", true ).toBool() )
17301730
{
17311731
// add a widget to show/set current rotation
17321732
mRotationLabel = new QLabel( QString(), statusBar() );

src/app/qgsoptions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
583583
cbxCopyWKTGeomFromTable->setChecked( settings.value( "/qgis/copyGeometryAsWKT", true ).toBool() );
584584
leNullValue->setText( settings.value( "qgis/nullValue", "NULL" ).toString() );
585585
cbxIgnoreShapeEncoding->setChecked( settings.value( "/qgis/ignoreShapeEncoding", true ).toBool() );
586-
cbxCanvasRotation->setChecked( settings.value( "/qgis/canvasRotation", false ).toBool() );
586+
cbxCanvasRotation->setChecked( settings.value( "/qgis/canvasRotation", true ).toBool() );
587587

588588
cmbLegendDoubleClickAction->setCurrentIndex( settings.value( "/qgis/legendDoubleClickAction", 0 ).toInt() );
589589

src/gui/qgsmapcanvas.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ double QgsMapCanvas::rotation() const
904904

905905
void QgsMapCanvas::setRotation( double degrees )
906906
{
907-
if ( !QSettings().value( "/qgis/canvasRotation", false ).toBool() )
907+
if ( !QSettings().value( "/qgis/canvasRotation", true ).toBool() )
908908
return;
909909

910910
double current = rotation();

0 commit comments

Comments
 (0)