Skip to content

Commit 481eab9

Browse files
author
timlinux
committedOct 6, 2008
give better names to some methods
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9441 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5b75b12 commit 481eab9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/plugins/grass/qgsgrassmodule.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ void QgsGrassModuleStandardOptions::freezeOutput()
599599
int nlayers = mCanvas->layerCount();
600600
for ( int i = 0; i < nlayers; i++ )
601601
{
602-
QgsMapLayer *layer = mCanvas->getZpos( i );
602+
QgsMapLayer *layer = mCanvas->layer( i );
603603

604604
if ( layer->type() != QgsMapLayer::VECTOR ) continue;
605605

@@ -671,7 +671,7 @@ void QgsGrassModuleStandardOptions::thawOutput()
671671
int nlayers = mCanvas->layerCount();
672672
for ( int i = 0; i < nlayers; i++ )
673673
{
674-
QgsMapLayer *layer = mCanvas->getZpos( i );
674+
QgsMapLayer *layer = mCanvas->layer( i );
675675

676676
if ( layer->type() != QgsMapLayer::VECTOR ) continue;
677677

@@ -2258,7 +2258,7 @@ void QgsGrassModuleInput::updateQgisLayers()
22582258
int nlayers = canvas->layerCount();
22592259
for ( int i = 0; i < nlayers; i++ )
22602260
{
2261-
QgsMapLayer *layer = canvas->getZpos( i );
2261+
QgsMapLayer *layer = canvas->layer( i );
22622262

22632263
QgsDebugMsg( "layer->type() = " + QString::number( layer->type() ) );
22642264

@@ -2671,7 +2671,7 @@ void QgsGrassModuleGdalInput::updateQgisLayers()
26712671
int nlayers = canvas->layerCount();
26722672
for ( int i = 0; i < nlayers; i++ )
26732673
{
2674-
QgsMapLayer *layer = canvas->getZpos( i );
2674+
QgsMapLayer *layer = canvas->layer( i );
26752675

26762676
if ( mType == Ogr && layer->type() == QgsMapLayer::VECTOR )
26772677
{

0 commit comments

Comments
 (0)
Please sign in to comment.