Skip to content

Commit

Permalink
Add missing 'm values' checkbox to create shapefile dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 9, 2017
1 parent f290109 commit e6f6d49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/qgsnewvectorlayerdialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ QgsWkbTypes::Type QgsNewVectorLayerDialog::selectedType() const
wkbType = static_cast<QgsWkbTypes::Type> wkbType = static_cast<QgsWkbTypes::Type>
( mGeometryTypeBox->currentData( Qt::UserRole ).toInt() ); ( mGeometryTypeBox->currentData( Qt::UserRole ).toInt() );


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

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


return wkbType; return wkbType;
} }
Expand Down

0 comments on commit e6f6d49

Please sign in to comment.