Skip to content
Permalink
Browse files

[Geometry checker] Fix determining active layer geometry types

  • Loading branch information
manisandro committed Jun 28, 2017
1 parent 81a4a52 commit 018467fc39a9aede1782930aa5dd31418c60e5c2
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/plugins/geometry_checker/ui/qgsgeometrycheckersetuptab.cpp
@@ -171,11 +171,11 @@ void QgsGeometryCheckerSetupTab::validateInput()
QStringList layerCrs = QStringList() << mIface->mapCanvas()->mapSettings().destinationCrs().authid();
QList<QgsVectorLayer *> layers = getSelectedLayers();
int nApplicable = 0;
int nPoint = 0;
int nLineString = 0;
int nPolygon = 0;
if ( !layers.isEmpty() )
{
int nPoint = 0;
int nLineString = 0;
int nPolygon = 0;
for ( QgsVectorLayer *layer : layers )
{
QgsWkbTypes::GeometryType geomType = layer->geometryType();
@@ -193,10 +193,10 @@ void QgsGeometryCheckerSetupTab::validateInput()
}
layerCrs.append( layer->crs().authid() );
}
for ( const QgsGeometryCheckFactory *factory : QgsGeometryCheckFactoryRegistry::getCheckFactories() )
{
nApplicable += factory->checkApplicability( ui, nPoint, nLineString, nPolygon );
}
}
for ( const QgsGeometryCheckFactory *factory : QgsGeometryCheckFactoryRegistry::getCheckFactories() )
{
nApplicable += factory->checkApplicability( ui, nPoint, nLineString, nPolygon );
}

bool outputOk = ui.radioButtonOutputModifyInput->isChecked() || !ui.lineEditOutputDirectory->text().isEmpty();

0 comments on commit 018467f

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