Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
enable canvas rotation support by default
  • Loading branch information
jef-n committed Jan 16, 2015
1 parent 93e2226 commit 204e710
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -1726,7 +1726,7 @@ void QgisApp::createStatusBar()
statusBar()->addPermanentWidget( mScaleEdit, 0 );
connect( mScaleEdit, SIGNAL( scaleChanged() ), this, SLOT( userScale() ) );

if ( QSettings().value( "/qgis/canvasRotation", false ).toBool() )
if ( QSettings().value( "/qgis/canvasRotation", true ).toBool() )
{
// add a widget to show/set current rotation
mRotationLabel = new QLabel( QString(), statusBar() );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsoptions.cpp
Expand Up @@ -583,7 +583,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
cbxCopyWKTGeomFromTable->setChecked( settings.value( "/qgis/copyGeometryAsWKT", true ).toBool() );
leNullValue->setText( settings.value( "qgis/nullValue", "NULL" ).toString() );
cbxIgnoreShapeEncoding->setChecked( settings.value( "/qgis/ignoreShapeEncoding", true ).toBool() );
cbxCanvasRotation->setChecked( settings.value( "/qgis/canvasRotation", false ).toBool() );
cbxCanvasRotation->setChecked( settings.value( "/qgis/canvasRotation", true ).toBool() );

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

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -904,7 +904,7 @@ double QgsMapCanvas::rotation() const

void QgsMapCanvas::setRotation( double degrees )
{
if ( !QSettings().value( "/qgis/canvasRotation", false ).toBool() )
if ( !QSettings().value( "/qgis/canvasRotation", true ).toBool() )
return;

double current = rotation();
Expand Down

1 comment on commit 204e710

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 204e710 Jan 17, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jef-n, should we even keep this option at all? When would it be useful for a user to disable rotation altogether?

Please sign in to comment.