Skip to content

Commit

Permalink
Add OTF text to CRS button when on the fly is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jan 1, 2015
1 parent c5b5eee commit 246de9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -8686,6 +8686,7 @@ void QgisApp::updateCRSStatusBar()

if ( mMapCanvas->mapSettings().hasCrsTransformEnabled() )
{
mOnTheFlyProjectionStatusButton->setText( QString("%1 (OTF)").arg( mOnTheFlyProjectionStatusButton->text() ) );
mOnTheFlyProjectionStatusButton->setToolTip(
tr( "Current CRS: %1 (OTFR enabled)" ).arg( mMapCanvas->mapSettings().destinationCrs().description() ) );
mOnTheFlyProjectionStatusButton->setIcon( QgsApplication::getThemeIcon( "mIconProjectionEnabled.png" ) );
Expand Down

0 comments on commit 246de9f

Please sign in to comment.