Skip to content

Commit

Permalink
More UI enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 21, 2018
1 parent c49ec67 commit 26261ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -425,10 +425,13 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(

if ( mLayer->isSpatial() )
{
mRemoveDuplicateVerticeCheckbox->setEnabled( true );
mGeometryPrecisionSpinBox->setEnabled( true );

mRemoveDuplicateVerticeCheckbox->setChecked( mLayer->removeDuplicateNodes() );
mGeometryPrecisionSpinBox->setValue( mLayer->geometryPrecision() );

mGeometryPrecisionSpinBox->setSuffix( QgsUnitTypes::toAbbreviatedString( mLayer->crs().mapUnits() ) );
mGeometryPrecisionSpinBox->setSuffix( QStringLiteral( " [%1]" ).arg( QgsUnitTypes::toAbbreviatedString( mLayer->crs().mapUnits() ) ) );
}
else
{
Expand Down

0 comments on commit 26261ca

Please sign in to comment.