Fix compiler warning about use of deprecated crs.epsg() call

This commit is contained in:
Tim Sutton 2012-09-12 20:50:07 +02:00
parent 2096813d90
commit 6873b31757

View File

@ -1125,16 +1125,15 @@ void QgsGeorefPluginGui::addRaster( QString file )
mActionFullHistogramStretch->setEnabled(true);
// Status Bar
QString sEpsg("ESPG: %1");
if ( mGeorefTransform.hasCrs() )
{
long epsg = mLayer->crs().epsg();
mEPSG->setText( sEpsg.arg( epsg ) );
QString authid = mLayer->crs().authid();
mEPSG->setText( authid );
mEPSG->setToolTip( mLayer->crs().toProj4() );
}
else
{
mEPSG->setText( sEpsg.arg( tr("None") ) );
mEPSG->setText( tr("None") );
mEPSG->setToolTip( tr("Coordinate of image(column/line)") );
}
}