mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Disable support for canvas rotation by default
Rotation support can be enabled at runtime exporting the QGIS_ENABLE_CANVAS_ROTATION variable (set to any value)
This commit is contained in:
parent
11f73e791c
commit
68743f9b8a
@ -1750,6 +1750,7 @@ void QgisApp::createStatusBar()
|
||||
statusBar()->addPermanentWidget( mScaleEdit, 0 );
|
||||
connect( mScaleEdit, SIGNAL( scaleChanged() ), this, SLOT( userScale() ) );
|
||||
|
||||
if ( getenv( "QGIS_ENABLE_CANVAS_ROTATION" ) ) {
|
||||
// add a widget to show/set current rotation
|
||||
mRotationLabel = new QLabel( QString(), statusBar() );
|
||||
mRotationLabel->setObjectName( "mRotationLabel" );
|
||||
@ -1782,6 +1783,7 @@ void QgisApp::createStatusBar()
|
||||
connect( mRotationEdit, SIGNAL( valueChanged( double ) ), this, SLOT( userRotation() ) );
|
||||
|
||||
showRotation();
|
||||
}
|
||||
|
||||
|
||||
// render suppression status bar widget
|
||||
|
@ -899,6 +899,8 @@ double QgsMapCanvas::rotation() const
|
||||
|
||||
void QgsMapCanvas::setRotation( double degrees )
|
||||
{
|
||||
if ( ! getenv( "QGIS_ENABLE_CANVAS_ROTATION" ) ) return;
|
||||
|
||||
double current = rotation();
|
||||
|
||||
if ( degrees == current )
|
||||
|
Loading…
x
Reference in New Issue
Block a user