Skip to content

Commit 9c6c3aa

Browse files
committed
qobject_cast
1 parent 6c069c1 commit 9c6c3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsgeometryvalidationdock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void QgsGeometryValidationDock::onCurrentLayerChanged( QgsMapLayer *layer )
208208
{
209209
// activate icon
210210
bool enabled = false;
211-
QgsVectorLayer *vl = dynamic_cast<QgsVectorLayer *>( layer );
211+
QgsVectorLayer *vl = qobject_cast<QgsVectorLayer *>( layer );
212212
if ( vl && vl->isSpatial() )
213213
{
214214
const QList<QgsGeometryCheckFactory *> topologyCheckFactories = QgsAnalysis::instance()->geometryCheckRegistry()->geometryCheckFactories( vl, QgsGeometryCheck::LayerCheck, QgsGeometryCheck::Flag::AvailableInValidation );

0 commit comments

Comments
 (0)