Skip to content

Commit

Permalink
[topology-checker] skips raster layers: fixes #8469
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Aug 15, 2013
1 parent 74367c5 commit 9d19752
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 9d19752

Please sign in to comment.