Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compiler warning about use of deprecated crs.epsg() call
  • Loading branch information
timlinux committed Sep 12, 2012
1 parent 2096813 commit 6873b31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/plugins/georeferencer/qgsgeorefplugingui.cpp
Expand Up @@ -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)") );
}
}
Expand Down

0 comments on commit 6873b31

Please sign in to comment.