From 4d4b84ca63a82bdf05ba5f633cab436c18199528 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Wed, 24 Oct 2018 15:23:53 +0200 Subject: Fix initial width --- clang_format_diff | 23 +++++++++++++++++++++++ src/live_effects/lpe-knot.cpp | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 clang_format_diff diff --git a/clang_format_diff b/clang_format_diff new file mode 100644 index 000000000..af9410f3b --- /dev/null +++ b/clang_format_diff @@ -0,0 +1,23 @@ +--- src/live_effects/lpe-knot.h (before formatting) ++++ src/live_effects/lpe-knot.h (after formatting) +@@ -76,7 +76,7 @@ + ScalarParam interruption_width; + BoolParam prop_to_stroke_width; + BoolParam inverse_width; +- // "add_stroke_width" and "add_other_stroke_width" parameters are not used since Inkscape 1.0, ++ // "add_stroke_width" and "add_other_stroke_width" parameters are not used since Inkscape 1.0, + // but changed from bool to hidden parameter to retain backward compatibility and dont show in the UI + HiddenParam add_stroke_width; + HiddenParam add_other_stroke_width; +--- src/live_effects/lpe-knot.cpp (before formatting) ++++ src/live_effects/lpe-knot.cpp (after formatting) +@@ -345,7 +345,8 @@ + : Effect(lpeobject) + , + // initialise your parameters here: +- interruption_width(_("_Gap length:"), _("Size of hidden region of lower string"), "interruption_width", &wr, this, 1) ++ interruption_width(_("_Gap length:"), _("Size of hidden region of lower string"), "interruption_width", &wr, this, ++ 1) + , prop_to_stroke_width(_("_In units of stroke width"), _("Consider 'Width' as a ratio of stroke width"), + "prop_to_stroke_width", &wr, this, true) + , inverse_width(_("_Inverse"), _("Use other stroke width, useful in groups with diferent stroke width"), diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp index 928039d0c..21fb3e5bf 100644 --- a/src/live_effects/lpe-knot.cpp +++ b/src/live_effects/lpe-knot.cpp @@ -345,7 +345,7 @@ LPEKnot::LPEKnot(LivePathEffectObject *lpeobject) : Effect(lpeobject) , // initialise your parameters here: - interruption_width(_("_Gap length:"), _("Size of hidden region of lower string"), "interruption_width", &wr, this, 1) + interruption_width(_("_Gap length:"), _("Size of hidden region of lower string"), "interruption_width", &wr, this, 3) , prop_to_stroke_width(_("_In units of stroke width"), _("Consider 'Width' as a ratio of stroke width"), "prop_to_stroke_width", &wr, this, true) , inverse_width(_("_Inverse"), _("Use other stroke width, useful in groups with diferent stroke width"), -- cgit v1.2.3