Skip to content

Commit

Permalink
[Geometry checker] Fix type check factory
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent c44fa1d commit bd44483
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/geometry_checker/qgsgeometrycheckfactory.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -631,27 +631,27 @@ template<> QgsGeometryCheck *QgsGeometryCheckFactoryT<QgsGeometryTypeCheck>::cre
QgsSettings().setValue( sSettingsGroup + "checkTypeMultipolygon", ui.checkBoxMultipolygon->isChecked() ); QgsSettings().setValue( sSettingsGroup + "checkTypeMultipolygon", ui.checkBoxMultipolygon->isChecked() );


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

0 comments on commit bd44483

Please sign in to comment.