Skip to content
Permalink
Browse files
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 2255852508e772e5c0dee9e9d4e1b63f7a343237
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgssnappingdialog.cpp
  2. +1 −1 src/plugins/grass/qgsgrassmapcalc.cpp
@@ -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 );
@@ -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;

0 comments on commit 2255852

Please sign in to comment.