Skip to content

Commit db8b53f

Browse files
committedOct 23, 2017
[Geometry checker] Ensure duplicate check ui is enabled also for lines
1 parent baf4a39 commit db8b53f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/plugins/geometry_checker/qgsgeometrycheckfactory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ template<> void QgsGeometryCheckFactoryT<QgsGeometryDuplicateCheck>::restorePrev
194194
ui.checkBoxDuplicates->setChecked( QgsSettings().value( sSettingsGroup + "checkDuplicates" ).toBool() );
195195
}
196196

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

0 commit comments

Comments
 (0)
Please sign in to comment.