Skip to content

Commit 8d70a51

Browse files
committedMay 9, 2016
Geometry type check in merge tool is not necessary any more (geometry type conversion is done in provider)
1 parent f1e6d87 commit 8d70a51

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6657,18 +6657,6 @@ void QgisApp::mergeSelectedFeatures()
66576657
return;
66586658
}
66596659

6660-
//make a first geometry union and notify the user straight away if the union geometry type does not match the layer one
6661-
if ( providerChecksTypeStrictly && unionGeom->wkbType() != vl->wkbType() )
6662-
{
6663-
messageBar()->pushMessage(
6664-
tr( "Merge cancelled" ),
6665-
tr( "The union operation would result in a geometry type that is not compatible with the current layer." ),
6666-
QgsMessageBar::CRITICAL );
6667-
6668-
delete unionGeom;
6669-
return;
6670-
}
6671-
66726660
//merge the attributes together
66736661
QgsMergeAttributesDialog d( featureList, vl, mapCanvas() );
66746662
if ( d.exec() == QDialog::Rejected )
@@ -6707,16 +6695,6 @@ void QgisApp::mergeSelectedFeatures()
67076695
}
67086696
return;
67096697
}
6710-
6711-
if ( providerChecksTypeStrictly && unionGeom->wkbType() != vl->wkbType() )
6712-
{
6713-
messageBar()->pushMessage(
6714-
tr( "Merge cancelled" ),
6715-
tr( "The union operation would result in a geometry type that is not compatible with the current layer." ),
6716-
QgsMessageBar::CRITICAL );
6717-
delete unionGeom;
6718-
return;
6719-
}
67206698
}
67216699

67226700
vl->beginEditCommand( tr( "Merged features" ) );

0 commit comments

Comments
 (0)
Please sign in to comment.