Skip to content

Commit

Permalink
fix #10672: force multi when pasting on a shapefile
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 23, 2014
1 parent 4c199ff commit be032f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -5873,6 +5873,11 @@ void QgisApp::editPaste( QgsMapLayer *destinationLayer )
// convert geometry to match destination layer
QGis::GeometryType destType = pasteVectorLayer->geometryType();
bool destIsMulti = QGis::isMultiType( pasteVectorLayer->wkbType() );
if ( pasteVectorLayer->storageType() == "ESRI Shapefile" )
{
// force destination to multi if shapefile
destIsMulti = true;
}
if ( destType != QGis::UnknownGeometry )
{
QgsGeometry* newGeometry = featureIt->geometry()->convertToType( destType, destIsMulti );
Expand Down

0 comments on commit be032f7

Please sign in to comment.