Skip to content

Commit

Permalink
Re-enable multipart to single part
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Sep 14, 2018
1 parent ab8d54f commit 6152af4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/analysis/processing/qgsalgorithmmultiparttosinglepart.cpp
Expand Up @@ -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
{
Expand Down
Expand Up @@ -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:

Expand Down

0 comments on commit 6152af4

Please sign in to comment.