Skip to content
Permalink
Browse files

Re-enable multipart to single part

  • Loading branch information
elpaso authored and nyalldawson committed Sep 14, 2018
1 parent ab8d54f commit 6152af460e82f22f9718178ed70ee1ac5abc59b3
@@ -67,13 +67,6 @@ QgsMultipartToSinglepartAlgorithm *QgsMultipartToSinglepartAlgorithm::createInst
return new QgsMultipartToSinglepartAlgorithm();
}

bool QgsMultipartToSinglepartAlgorithm::supportInPlaceEdit( const QgsVectorLayer *layer ) const
{
if ( ! QgsProcessingFeatureBasedAlgorithm::supportInPlaceEdit( layer ) )
return false;
// The layer is already single part!
return QgsWkbTypes::isMultiType( layer->wkbType() );
}

QgsProcessingFeatureSource::Flag QgsMultipartToSinglepartAlgorithm::sourceFlags() const
{
@@ -45,7 +45,6 @@ class QgsMultipartToSinglepartAlgorithm : public QgsProcessingFeatureBasedAlgori
QString groupId() const override;
QString shortHelpString() const override;
QgsMultipartToSinglepartAlgorithm *createInstance() const override SIP_FACTORY;
bool supportInPlaceEdit( const QgsVectorLayer *layer ) const override;

protected:

0 comments on commit 6152af4

Please sign in to comment.
You can’t perform that action at this time.