mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
fix compile error
git-svn-id: http://svn.osgeo.org/qgis/trunk@9442 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
6b8d838ff3
commit
e35a35951e
@ -45,7 +45,7 @@ QgsSnappingDialog::QgsSnappingDialog( QgsMapCanvas* canvas, const QMap<QString,
|
|||||||
{
|
{
|
||||||
for ( int i = 0; i < nLayers; ++i )
|
for ( int i = 0; i < nLayers; ++i )
|
||||||
{
|
{
|
||||||
currentLayer = mMapCanvas->getZpos( i );
|
currentLayer = mMapCanvas->layer( i );
|
||||||
if ( currentLayer )
|
if ( currentLayer )
|
||||||
{
|
{
|
||||||
currentVectorLayer = dynamic_cast<QgsVectorLayer*>( currentLayer );
|
currentVectorLayer = dynamic_cast<QgsVectorLayer*>( currentLayer );
|
||||||
|
@ -845,7 +845,7 @@ void QgsGrassMapcalc::updateMaps()
|
|||||||
QgsDebugMsg( QString( "nlayers = %1" ).arg( nlayers ) );
|
QgsDebugMsg( QString( "nlayers = %1" ).arg( nlayers ) );
|
||||||
for ( int i = 0; i < nlayers; i++ )
|
for ( int i = 0; i < nlayers; i++ )
|
||||||
{
|
{
|
||||||
QgsMapLayer *layer = canvas->getZpos( i );
|
QgsMapLayer *layer = canvas->layer( i );
|
||||||
|
|
||||||
if ( layer->type() != QgsMapLayer::RASTER ) continue;
|
if ( layer->type() != QgsMapLayer::RASTER ) continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user