Skip to content
Permalink
Browse files

[Geometry checker] Fix type check factory

  • Loading branch information
manisandro committed Oct 12, 2017
1 parent c44fa1d commit bd44483f83f4619283cc77a76396485742773042
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/plugins/geometry_checker/qgsgeometrycheckfactory.cpp
@@ -631,27 +631,27 @@ template<> QgsGeometryCheck *QgsGeometryCheckFactoryT<QgsGeometryTypeCheck>::cre
QgsSettings().setValue( sSettingsGroup + "checkTypeMultipolygon", ui.checkBoxMultipolygon->isChecked() );

int allowedTypes = 0;
if ( ui.checkBoxPoint->isChecked() )
if ( ui.checkBoxPoint->isEnabled() && ui.checkBoxPoint->isChecked() )
{
allowedTypes |= 1 << QgsWkbTypes::Point;
}
if ( ui.checkBoxMultipoint->isChecked() )
if ( ui.checkBoxMultipoint->isEnabled() && ui.checkBoxMultipoint->isChecked() )
{
allowedTypes |= 1 << QgsWkbTypes::MultiPoint;
}
if ( ui.checkBoxLine->isChecked() )
if ( ui.checkBoxLine->isEnabled() && ui.checkBoxLine->isChecked() )
{
allowedTypes |= 1 << QgsWkbTypes::LineString;
}
if ( ui.checkBoxMultiline->isChecked() )
if ( ui.checkBoxMultiline->isEnabled() && ui.checkBoxMultiline->isChecked() )
{
allowedTypes |= 1 << QgsWkbTypes::MultiLineString;
}
if ( ui.checkBoxPolygon->isChecked() )
if ( ui.checkBoxPolygon->isEnabled() && ui.checkBoxPolygon->isChecked() )
{
allowedTypes |= 1 << QgsWkbTypes::Polygon;
}
if ( ui.checkBoxMultipolygon->isChecked() )
if ( ui.checkBoxMultipolygon->isEnabled() && ui.checkBoxMultipolygon->isChecked() )
{
allowedTypes |= 1 << QgsWkbTypes::MultiPolygon;
}

0 comments on commit bd44483

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