Skip to content
Permalink
Browse files
Fix failing test
  • Loading branch information
nyalldawson committed May 2, 2017
1 parent b1eecfd commit fa8f667b3ead2c343fd4c6a5d4c274af7fa32b98
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/tools/dataobjects.py
@@ -39,7 +39,8 @@
QgsCoordinateReferenceSystem,
QgsSettings,
QgsProcessingUtils,
QgsProcessingContext)
QgsProcessingContext,
QgsFeatureRequest)
from qgis.gui import QgsSublayersDialog
from qgis.PyQt.QtCore import QCoreApplication

@@ -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):

0 comments on commit fa8f667

Please sign in to comment.