Skip to content
Permalink
Browse files

[Geometry checker] Ensure duplicate check ui is enabled also for lines

  • Loading branch information
manisandro committed Sep 28, 2017
1 parent baf4a39 commit db8b53f9ac85e76b807ae921efe83813966a1a69
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/geometry_checker/qgsgeometrycheckfactory.cpp
@@ -194,9 +194,9 @@ template<> void QgsGeometryCheckFactoryT<QgsGeometryDuplicateCheck>::restorePrev
ui.checkBoxDuplicates->setChecked( QgsSettings().value( sSettingsGroup + "checkDuplicates" ).toBool() );
}

template<> bool QgsGeometryCheckFactoryT<QgsGeometryDuplicateCheck>::checkApplicability( Ui::QgsGeometryCheckerSetupTab &ui, int nPoint, int /*nLineString*/, int nPolygon ) const
template<> bool QgsGeometryCheckFactoryT<QgsGeometryDuplicateCheck>::checkApplicability( Ui::QgsGeometryCheckerSetupTab &ui, int nPoint, int nLineString, int nPolygon ) const
{
ui.checkBoxDuplicates->setEnabled( nPoint > 0 || nPolygon > 0 );
ui.checkBoxDuplicates->setEnabled( nPoint > 0 || nLineString > 0 || nPolygon > 0 );
return ui.checkBoxDuplicates->isEnabled();
}

0 comments on commit db8b53f

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