Skip to content

Commit feafe9c

Browse files
author
jef
committedMar 3, 2011
fix deprecation warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15314 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/plugins/spatialquery/qgsspatialquerydialog.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ void QgsSpatialQueryDialog::populateCbTargetLayer()
535535
}
536536

537537
addCbLayer( true, lyr );
538-
mMapIdVectorLayers.insert( lyr->getLayerID(), lyr );
538+
mMapIdVectorLayers.insert( lyr->id(), lyr );
539539
}
540540
cbTargetLayer->setCurrentIndex( 0 );
541541
cbTargetLayer->blockSignals( false );
@@ -674,11 +674,11 @@ void QgsSpatialQueryDialog::zoomFeature( QgsVectorLayer* lyr, int fid )
674674
{
675675
if ( hasMsg )
676676
{
677-
long epsgMapcanvas = srcMapcanvas.epsg();
677+
QString crsMapcanvas = srcMapcanvas.authid();
678678
bool isFly = mIface->mapCanvas()->mapRenderer()->hasCrsTransformEnabled();
679679
QString msgFly = tr( "Map \"%1\" \"on the fly\" transformation." ).arg( isFly ? tr( "enable" ) : tr( "disable" ) );
680680
QString msg = tr( "Coordinate reference system(CRS) of\n\"%1\" is invalid(see CRS of provider)." ).arg( lyr->name() );
681-
msg.append( tr( "\n\nEPSG of map is %1.\n%2." ).arg( epsgMapcanvas ).arg( msgFly ) );
681+
msg.append( tr( "\n\nCRS of map is %1.\n%2." ).arg( crsMapcanvas ).arg( msgFly ) );
682682
msg.append( "\n\nUsing CRS of map for all features!" );
683683

684684
QMessageBox::warning( this, tr( "Zoom to feature" ), msg, QMessageBox::Ok );
@@ -1006,7 +1006,7 @@ void QgsSpatialQueryDialog::signal_qgis_layerWasAdded( QgsMapLayer* mapLayer )
10061006
cbResultFor->setEnabled( true );
10071007
}
10081008
addCbLayer( false, lyr );
1009-
mMapIdVectorLayers.insert( lyr->getLayerID(), lyr );
1009+
mMapIdVectorLayers.insert( lyr->id(), lyr );
10101010

10111011
} // QgsSpatialQueryDialog::signal_qgis_layerWasAdded(QgsMapLayer* mapLayer)
10121012

0 commit comments

Comments
 (0)
Please sign in to comment.