Skip to content
Permalink
Browse files

qobject_cast

  • Loading branch information
m-kuhn committed Oct 2, 2018
1 parent 6c069c1 commit 9c6c3aa8374075b71186dc12ccbf56192e5a9d62
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsgeometryvalidationdock.cpp
@@ -208,7 +208,7 @@ void QgsGeometryValidationDock::onCurrentLayerChanged( QgsMapLayer *layer )
{
// activate icon
bool enabled = false;
QgsVectorLayer *vl = dynamic_cast<QgsVectorLayer *>( layer );
QgsVectorLayer *vl = qobject_cast<QgsVectorLayer *>( layer );
if ( vl && vl->isSpatial() )
{
const QList<QgsGeometryCheckFactory *> topologyCheckFactories = QgsAnalysis::instance()->geometryCheckRegistry()->geometryCheckFactories( vl, QgsGeometryCheck::LayerCheck, QgsGeometryCheck::Flag::AvailableInValidation );

0 comments on commit 9c6c3aa

Please sign in to comment.
You can’t perform that action at this time.