Skip to content
Permalink
Browse files

Add missing 'm values' checkbox to create shapefile dialog

  • Loading branch information
nyalldawson committed Dec 7, 2017
1 parent f290109 commit e6f6d498862c54a5d197d742999dbdac18f6dcd5
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/gui/qgsnewvectorlayerdialog.cpp
@@ -167,8 +167,11 @@ QgsWkbTypes::Type QgsNewVectorLayerDialog::selectedType() const
wkbType = static_cast<QgsWkbTypes::Type>
( mGeometryTypeBox->currentData( Qt::UserRole ).toInt() );

if ( mGeometryWithZCheckBox->isChecked() && wkbType != QgsWkbTypes::Unknown )
wkbType = QgsWkbTypes::to25D( wkbType );
if ( mGeometryWithZCheckBox->isChecked() )
wkbType = QgsWkbTypes::addZ( wkbType );

if ( mGeometryWithMCheckBox->isChecked() )
wkbType = QgsWkbTypes::addM( wkbType );

return wkbType;
}

0 comments on commit e6f6d49

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