Skip to content
Permalink
Browse files

fix #3590

git-svn-id: http://svn.osgeo.org/qgis/trunk@15517 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty
borysiasty committed Mar 16, 2011
1 parent 89b09d1 commit 5003810c227b668be66b5521f8bde159e4c9d174
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/qgisapp.cpp
@@ -2519,6 +2519,8 @@ void QgisApp::fileNew( bool thePromptToSaveFlag )
// enable OTF CRS transformation if necessary
myRenderer->setProjectionsEnabled( settings.value( "/Projections/otfTransformEnabled", 0 ).toBool() );

updateCRSStatusBar();

// set the initial map tool
mMapCanvas->setMapTool( mMapTools.mPan );
mNonEditMapTool = mMapTools.mPan; // signals are not yet setup to catch this
@@ -5378,14 +5380,14 @@ void QgisApp::updateCRSStatusBar()
{
mOnTheFlyProjectionStatusLabel->setEnabled( true );
mOnTheFlyProjectionStatusLabel->setToolTip(
tr( "Current CRS: %1" ).arg( mMapCanvas->mapRenderer()->destinationCrs().description() ) );
tr( "Current CRS: %1 (OTFR enabled)" ).arg( mMapCanvas->mapRenderer()->destinationCrs().description() ) );
mOnTheFlyProjectionStatusButton->setIcon( getThemeIcon( "mIconProjectionEnabled.png" ) );
}
else
{
mOnTheFlyProjectionStatusLabel->setEnabled( false );
mOnTheFlyProjectionStatusLabel->setToolTip(
tr( "Inactive project CRS: %1" ).arg( mMapCanvas->mapRenderer()->destinationCrs().description() ) );
tr( "Current CRS: %1 (OTFR disabled)" ).arg( mMapCanvas->mapRenderer()->destinationCrs().description() ) );
mOnTheFlyProjectionStatusButton->setIcon( getThemeIcon( "mIconProjectionDisabled.png" ) );
}
}

0 comments on commit 5003810

Please sign in to comment.
You can’t perform that action at this time.