Skip to content

Commit

Permalink
Registry updates
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent e55bb7a commit e8a7ab4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@

#include "qgis.h"

QgsGeometryCheck::CheckType QgsGeometryCheckFactory::flags() const
bool QgsGeometryCheckFactory::isCompatible( QgsVectorLayer *layer ) const
{
return QgsGeometryCheck::FeatureNodeCheck;
return true;
}

QgsGeometryCheck::Flags QgsGeometryCheckFactory::flags() const
{
return nullptr;
}
6 changes: 6 additions & 0 deletions src/app/qgsvectorlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
#include "qgsvectorlayersavestyledialog.h"
#include "qgsvectorlayerloadstyledialog.h"
#include "qgsmessagebar.h"
#include "qgsgeometrycheckregistry.h"
#include "qgsgeometrycheck.h"
#include "qgsanalysis.h"

#include "layertree/qgslayertreelayer.h"
#include "qgslayertree.h"
Expand Down Expand Up @@ -755,6 +758,9 @@ void QgsVectorLayerProperties::apply()
mLayer->geometryOptions()->setRemoveDuplicateNodes( mRemoveDuplicateNodesCheckbox->isChecked() );
mLayer->geometryOptions()->setGeometryPrecision( mGeometryPrecisionLineEdit->text().toDouble() );

// update symbology
emit refreshLegend( mLayer->id() );

mLayer->triggerRepaint();
// notify the project we've made a change
QgsProject::instance()->setDirty( true );
Expand Down

0 comments on commit e8a7ab4

Please sign in to comment.