File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,10 @@ void QgsMapToolSimplify::setTolerance( double tolerance )
165
165
updateSimplificationPreview ();
166
166
}
167
167
168
- void QgsMapToolSimplify::setToleranceUnits ( const QgsTolerance::UnitType & units )
168
+ void QgsMapToolSimplify::setToleranceUnits ( QgsTolerance::UnitType units )
169
169
{
170
+ mToleranceUnits = units;
171
+
170
172
QgsSettings settings;
171
173
settings.setValue ( QStringLiteral ( " digitizing/simplify_tolerance_units" ), units );
172
174
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class APP_EXPORT QgsMapToolSimplify: public QgsMapToolEdit
73
73
// ! Slot to change display when slidebar is moved
74
74
void setTolerance ( double tolerance );
75
75
76
- void setToleranceUnits ( const QgsTolerance::UnitType & units );
76
+ void setToleranceUnits ( QgsTolerance::UnitType units );
77
77
78
78
// ! Slot to store feature after simplification
79
79
void storeSimplified ();
You can’t perform that action at this time.
0 commit comments