summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/freehand-base.cpp
diff options
context:
space:
mode:
authorJabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es>2017-08-29 07:52:04 +0000
committerJabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es>2017-08-29 07:52:04 +0000
commit83f03384836c6a130eddfc26cd37cfbb1b3e1790 (patch)
tree0eae282e1a7e53fe0945e47f3284744312703d43 /src/ui/tools/freehand-base.cpp
parentCI/AppVeyor: manually install missing dependency (diff)
downloadinkscape-83f03384836c6a130eddfc26cd37cfbb1b3e1790.tar.gz
inkscape-83f03384836c6a130eddfc26cd37cfbb1b3e1790.zip
Remove LPE Simplify from spiro and BSpline mode because made uncontrolable paths. Is retained in bezier mode. Consider backport it
Diffstat (limited to 'src/ui/tools/freehand-base.cpp')
-rw-r--r--src/ui/tools/freehand-base.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp
index 76d2df8c5..fdc70af18 100644
--- a/src/ui/tools/freehand-base.cpp
+++ b/src/ui/tools/freehand-base.cpp
@@ -320,7 +320,9 @@ static void spdc_check_for_and_apply_waiting_LPE(FreehandBase *dc, SPItem *item,
return;
}
bool simplify = prefs->getInt(tool_name(dc) + "/simplify", 0);
- if(simplify){
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ guint mode = prefs->getInt("/tools/freehand/pencil/freehand-mode", 0);
+ if(simplify && mode == 0){
double tol = prefs->getDoubleLimited("/tools/freehand/pencil/tolerance", 10.0, 1.0, 100.0);
tol = tol/(100.0*(102.0-tol));
std::ostringstream ss;