mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix compiler warning about use of deprecated crs.epsg() call
This commit is contained in:
parent
2096813d90
commit
6873b31757
@ -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)") );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user