Skip to content

Commit

Permalink
Merge pull request #814 from slarosa/fix_8469
Browse files Browse the repository at this point in the history
[topology-checker] skips raster layers: fixes #8469
  • Loading branch information
mach0 committed Aug 15, 2013
2 parents 74367c5 + 9d19752 commit 2046342
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/plugins/topology/rulesDialog.cpp
Expand Up @@ -186,9 +186,13 @@ void rulesDialog::showControls( const QString& testName )
continue;
}

if ( topologyRule.layer2AcceptsType( v1->geometryType() ) )

if ( v1->type() == QgsMapLayer::VectorLayer )
{
mLayer2Box->addItem( v1->name() , v1->id() );
if ( topologyRule.layer2AcceptsType( v1->geometryType() ) )
{
mLayer2Box->addItem( v1->name() , v1->id() );
}
}
}
}
Expand Down Expand Up @@ -351,8 +355,10 @@ void rulesDialog::initGui()
qDebug() << "layerid = " + layerList[i];

// add layer name to the layer combo boxes

mLayer1Box->addItem( v1->name(), v1->id() );
if ( v1->type() == QgsMapLayer::VectorLayer )
{
mLayer1Box->addItem( v1->name(), v1->id() );
}
}
mLayer1Box->blockSignals( false );

Expand Down

0 comments on commit 2046342

Please sign in to comment.