diff options
| author | jtx <javier.arraiza@marker.es> | 2015-06-26 12:07:24 +0000 |
|---|---|---|
| committer | jtx <javier.arraiza@marker.es> | 2015-06-26 12:07:24 +0000 |
| commit | 0735cfb906cbfcff254979e99219af75ab0864cc (patch) | |
| tree | d974a98a83628366deeddc7dda6a955d33ef0c65 /src | |
| parent | Fix for the bug 1468396. Fix the new bug noticed by su_v (diff) | |
| download | inkscape-0735cfb906cbfcff254979e99219af75ab0864cc.tar.gz inkscape-0735cfb906cbfcff254979e99219af75ab0864cc.zip | |
Improve hidding helper path when show outline toogle is on
(bzr r14220)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-bspline.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp index ecbfef76a..99e2a55fd 100644 --- a/src/live_effects/lpe-bspline.cpp +++ b/src/live_effects/lpe-bspline.cpp @@ -9,6 +9,7 @@ #include "sp-path.h" #include "svg/svg.h" #include "xml/repr.h" +#include "preferences.h" // TODO due to internal breakage in glibmm headers, this must be last: #include <glibmm/i18n.h> @@ -43,7 +44,7 @@ LPEBSpline::LPEBSpline(LivePathEffectObject *lpeobject) steps.param_set_digits(0); helper_size.param_set_range(0.0, 999.0); - helper_size.param_set_increments(5, 5); + helper_size.param_set_increments(1, 1); helper_size.param_set_digits(2); } @@ -76,13 +77,15 @@ void LPEBSpline::doEffect(SPCurve *curve) Geom::PathVector const original_pathv = curve->get_pathvector(); curve->reset(); - + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); for (Geom::PathVector::const_iterator path_it = original_pathv.begin(); path_it != original_pathv.end(); ++path_it) { if (path_it->empty()) { continue; } - hp.push_back(*path_it); + if (!prefs->getBool("/tools/nodes/show_outline", true)){ + hp.push_back(*path_it); + } Geom::Path::const_iterator curve_it1 = path_it->begin(); Geom::Path::const_iterator curve_it2 = ++(path_it->begin()); Geom::Path::const_iterator curve_endit = path_it->end_default(); |
