Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix failing test
  • Loading branch information
nyalldawson committed May 2, 2017
1 parent b1eecfd commit fa8f667
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/tools/dataobjects.py
Expand Up @@ -39,7 +39,8 @@
QgsCoordinateReferenceSystem,
QgsSettings,
QgsProcessingUtils,
QgsProcessingContext)
QgsProcessingContext,
QgsFeatureRequest)
from qgis.gui import QgsSublayersDialog
from qgis.PyQt.QtCore import QCoreApplication

Expand Down Expand Up @@ -74,6 +75,8 @@ def createContext():
context.setFlags(QgsProcessingContext.UseSelectionIfPresent)

invalid_features_method = ProcessingConfig.getSetting(ProcessingConfig.FILTER_INVALID_GEOMETRIES)
if not invalid_features_method:
invalid_features_method = QgsFeatureRequest.GeometryAbortOnInvalid
context.setInvalidGeometryCheck(invalid_features_method)

def raise_error(f):
Expand Down

0 comments on commit fa8f667

Please sign in to comment.