Skip to content

Commit 223a87f

Browse files
authoredOct 5, 2018
Merge pull request #8121 from nyalldawson/no_boundary
Boundary alg cannot run in-place mode
2 parents 2f89139 + 57fcf43 commit 223a87f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed
 

‎src/analysis/processing/qgsalgorithmboundary.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,9 @@ QList<int> QgsBoundaryAlgorithm::inputLayerTypes() const
6363
return QList<int>() << QgsProcessing::TypeVectorLine << QgsProcessing::TypeVectorPolygon;
6464
}
6565

66-
bool QgsBoundaryAlgorithm::supportInPlaceEdit( const QgsMapLayer *l ) const
66+
bool QgsBoundaryAlgorithm::supportInPlaceEdit( const QgsMapLayer * ) const
6767
{
68-
const QgsVectorLayer *layer = qobject_cast< const QgsVectorLayer * >( l );
69-
if ( !layer )
70-
return false;
71-
72-
return layer->isSpatial();
68+
return false;
7369
}
7470

7571
QgsBoundaryAlgorithm *QgsBoundaryAlgorithm::createInstance() const

‎tests/src/python/test_qgsprocessinginplace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_support_in_place_edit(self):
167167
self._support_inplace_edit_tester('native:swapxy', GEOMETRY_ONLY)
168168
self._support_inplace_edit_tester('qgis:linestopolygons', NONE)
169169
self._support_inplace_edit_tester('qgis:polygonstolines', NONE)
170-
self._support_inplace_edit_tester('native:boundary', GEOMETRY_ONLY)
170+
self._support_inplace_edit_tester('native:boundary', NONE)
171171
self._support_inplace_edit_tester('native:clip', GEOMETRY_ONLY)
172172
self._support_inplace_edit_tester('native:difference', GEOMETRY_ONLY)
173173
self._support_inplace_edit_tester('native:dropgeometries', ALL)

0 commit comments

Comments
 (0)
Please sign in to comment.