Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8121 from nyalldawson/no_boundary
Boundary alg cannot run in-place mode
  • Loading branch information
elpaso committed Oct 5, 2018
2 parents 2f89139 + 57fcf43 commit 223a87f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/analysis/processing/qgsalgorithmboundary.cpp
Expand Up @@ -63,13 +63,9 @@ QList<int> QgsBoundaryAlgorithm::inputLayerTypes() const
return QList<int>() << QgsProcessing::TypeVectorLine << QgsProcessing::TypeVectorPolygon;
}

bool QgsBoundaryAlgorithm::supportInPlaceEdit( const QgsMapLayer *l ) const
bool QgsBoundaryAlgorithm::supportInPlaceEdit( const QgsMapLayer * ) const
{
const QgsVectorLayer *layer = qobject_cast< const QgsVectorLayer * >( l );
if ( !layer )
return false;

return layer->isSpatial();
return false;
}

QgsBoundaryAlgorithm *QgsBoundaryAlgorithm::createInstance() const
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsprocessinginplace.py
Expand Up @@ -167,7 +167,7 @@ def test_support_in_place_edit(self):
self._support_inplace_edit_tester('native:swapxy', GEOMETRY_ONLY)
self._support_inplace_edit_tester('qgis:linestopolygons', NONE)
self._support_inplace_edit_tester('qgis:polygonstolines', NONE)
self._support_inplace_edit_tester('native:boundary', GEOMETRY_ONLY)
self._support_inplace_edit_tester('native:boundary', NONE)
self._support_inplace_edit_tester('native:clip', GEOMETRY_ONLY)
self._support_inplace_edit_tester('native:difference', GEOMETRY_ONLY)
self._support_inplace_edit_tester('native:dropgeometries', ALL)
Expand Down

0 comments on commit 223a87f

Please sign in to comment.