Skip to content
Permalink
Browse files

improve the message string and append friendly name (e.g. WGS84)

  • Loading branch information
nirvn committed Mar 5, 2014
1 parent 8f70e30 commit 25241b865fe8d187fe0f688931312397fe6d9cc4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -423,14 +423,14 @@ void QgisApp::validateSrs( QgsCoordinateReferenceSystem &srs )
authid = QgisApp::instance()->mapCanvas()->mapSettings().destinationCrs().authid();
srs.createFromOgcWmsCrs( authid );
QgsDebugMsg( "Layer srs set from project: " + authid );
messageBar()->pushMessage( tr( "Warning" ), tr( "CRS undefined - defaulting to project CRS" ), QgsMessageBar::WARNING, messageTimeout() );
messageBar()->pushMessage( tr( "CRS was undefined" ), tr( "defaulting to project CRS %1 - %2" ).arg( authid ).arg( srs.description() ), QgsMessageBar::WARNING, messageTimeout() );
}
else ///Projections/defaultBehaviour==useGlobal
{
authid = mySettings.value( "/Projections/layerDefaultCrs", GEO_EPSG_CRS_AUTHID ).toString();
srs.createFromOgcWmsCrs( authid );
QgsDebugMsg( "Layer srs set from default: " + authid );
messageBar()->pushMessage( tr( "Warning" ), tr( "CRS undefined - defaulting to default CRS: %1" ).arg( authid ), QgsMessageBar::WARNING, messageTimeout() );
messageBar()->pushMessage( tr( "CRS was undefined" ), tr( "defaulting to CRS %1 - %2" ).arg( authid ).arg( srs.description() ), QgsMessageBar::WARNING, messageTimeout() );
}
}

0 comments on commit 25241b8

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