Showing with 10 additions and 4 deletions.
  1. +10 −4 src/plugins/topology/rulesDialog.cpp
14 changes: 10 additions & 4 deletions src/plugins/topology/rulesDialog.cpp
Original file line number Diff line number Diff line change
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