Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
  • Loading branch information
m-kuhn and nyalldawson committed Aug 12, 2019
1 parent 9ac76c7 commit 8531754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -140,7 +140,7 @@ void QgsGeometryGapCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &
QgsGeometryPartIterator parts = diffGeom->parts();
while ( parts.hasNext() )
{
QgsAbstractGeometry *gapGeom = parts.next();
const QgsAbstractGeometry *gapGeom = parts.next();
// Skip the gap between features and boundingbox
const double spacing = context()->tolerance;
if ( gapGeom->boundingBox().snappedToGrid( spacing ) == envelope->boundingBox().snappedToGrid( spacing ) )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -467,7 +467,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
{
const QVariantMap gapCheckConfig = mLayer->geometryOptions()->checkConfiguration( QStringLiteral( "QgsGeometryGapCheck" ) );

mGapCheckAllowExceptionsActivatedCheckBox = new QgsCollapsibleGroupBox( tr( "Allowed gaps" ) );
mGapCheckAllowExceptionsActivatedCheckBox = new QgsCollapsibleGroupBox( tr( "Allowed Gaps" ) );
mGapCheckAllowExceptionsActivatedCheckBox->setCheckable( true );
mGapCheckAllowExceptionsActivatedCheckBox->setChecked( gapCheckConfig.value( QStringLiteral( "allowedGapsEnabled" ), false ).toBool() );
QFormLayout *layout = new QFormLayout();
Expand Down

0 comments on commit 8531754

Please sign in to comment.