Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix compile error
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9442 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 6, 2008
1 parent 481eab9 commit 2255852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgssnappingdialog.cpp
Expand Up @@ -45,7 +45,7 @@ QgsSnappingDialog::QgsSnappingDialog( QgsMapCanvas* canvas, const QMap<QString,
{
for ( int i = 0; i < nLayers; ++i )
{
currentLayer = mMapCanvas->getZpos( i );
currentLayer = mMapCanvas->layer( i );
if ( currentLayer )
{
currentVectorLayer = dynamic_cast<QgsVectorLayer*>( currentLayer );
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassmapcalc.cpp
Expand Up @@ -845,7 +845,7 @@ void QgsGrassMapcalc::updateMaps()
QgsDebugMsg( QString( "nlayers = %1" ).arg( nlayers ) );
for ( int i = 0; i < nlayers; i++ )
{
QgsMapLayer *layer = canvas->getZpos( i );
QgsMapLayer *layer = canvas->layer( i );

if ( layer->type() != QgsMapLayer::RASTER ) continue;

Expand Down

0 comments on commit 2255852

Please sign in to comment.