Skip to content
Permalink
Browse files

Fix cannot set tolerance unit in simplify tool

  • Loading branch information
nyalldawson committed Mar 26, 2018
1 parent 4f16e01 commit 2b8519c0177b66a418af91f7772bf682ad83a26a
Showing with 4 additions and 2 deletions.
  1. +3 −1 src/app/qgsmaptoolsimplify.cpp
  2. +1 −1 src/app/qgsmaptoolsimplify.h
@@ -165,8 +165,10 @@ void QgsMapToolSimplify::setTolerance( double tolerance )
updateSimplificationPreview();
}

void QgsMapToolSimplify::setToleranceUnits( const QgsTolerance::UnitType &units )
void QgsMapToolSimplify::setToleranceUnits( QgsTolerance::UnitType units )
{
mToleranceUnits = units;

QgsSettings settings;
settings.setValue( QStringLiteral( "digitizing/simplify_tolerance_units" ), units );

@@ -73,7 +73,7 @@ class APP_EXPORT QgsMapToolSimplify: public QgsMapToolEdit
//! Slot to change display when slidebar is moved
void setTolerance( double tolerance );

void setToleranceUnits( const QgsTolerance::UnitType &units );
void setToleranceUnits( QgsTolerance::UnitType units );

//! Slot to store feature after simplification
void storeSimplified();

0 comments on commit 2b8519c

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