summaryrefslogtreecommitdiffstats
path: root/clang_format_diff
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2018-10-24 18:02:00 +0000
committerJabiertxof <jabier.arraiza@marker.es>2018-10-25 07:48:24 +0000
commita61d70d8ef1325f238d197b9e09858fc5f5e7684 (patch)
tree3cae6df433b5ff39ecacd786b4502eeddce09646 /clang_format_diff
parentFixing coding style (diff)
downloadinkscape-a61d70d8ef1325f238d197b9e09858fc5f5e7684.tar.gz
inkscape-a61d70d8ef1325f238d197b9e09858fc5f5e7684.zip
Add fixes in review.
Diffstat (limited to 'clang_format_diff')
-rw-r--r--clang_format_diff74
1 files changed, 0 insertions, 74 deletions
diff --git a/clang_format_diff b/clang_format_diff
deleted file mode 100644
index 266bf79c9..000000000
--- a/clang_format_diff
+++ /dev/null
@@ -1,74 +0,0 @@
---- src/live_effects/lpe-knot.cpp (before formatting)
-+++ src/live_effects/lpe-knot.cpp (after formatting)
-@@ -353,12 +353,10 @@
- 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)
-- , both(_("_Both gaps"), _("Use gap in both intersection elements"),
-- "both", &wr, this, false)
-+ , both(_("_Both gaps"), _("Use gap in both intersection elements"), "both", &wr, this, false)
- , inverse_width(_("_Groups: Inverse"), _("Use other stroke width, useful in groups with diferent stroke width"),
- "inverse_width", &wr, this, false)
-- , unclimb(_("_Groups: unclimb"), _("Don`t climb the gap in the same path"),
-- "unclimb", &wr, this, false)
-+ , unclimb(_("_Groups: unclimb"), _("Don`t climb the gap in the same path"), "unclimb", &wr, this, false)
- , add_stroke_width("St_roke width", "Add the stroke width to the interruption size", "add_stroke_width", &wr, this,
- "inkscape_1.0_and_up", true)
- , add_other_stroke_width("_Crossing path stroke width", "Add crossed stroke width to the interruption size",
-@@ -452,7 +450,7 @@
-
- int geom_sign = ( cross(flag_i[1], flag_j[1]) < 0 ? 1 : -1);
- if (unclimb) {
-- geom_sign = comp%2 == 0 ? -1 : -1;
-+ geom_sign = comp % 2 == 0 ? -1 : -1;
- }
- bool i0_is_under = false;
- double width = interruption_width;
-@@ -464,11 +462,11 @@
- i0_is_under = true;
- }
- }
-- i0_is_under = crossing_points[p].sign != 0 && both?true:i0_is_under;
-- if (i0_is_under && j == i0){
-- std::swap( i, j);
-+ i0_is_under = crossing_points[p].sign != 0 && both ? true : i0_is_under;
-+ if (i0_is_under && j == i0) {
-+ std::swap(i, j);
- std::swap(ti, tj);
-- std::swap(flag_i,flag_j);
-+ std::swap(flag_i, flag_j);
- }
- if (i0_is_under){
- if ( prop_to_stroke_width.get_value() ) {
-@@ -494,19 +492,18 @@
- }else{
- dom = complementOf(hidden,dom);
- }
-- if (crossing_points[p].i == i0 &&
-- crossing_points[p].j == i0 &&
-- crossing_points[p].sign != 0 &&
-- both)
-- {
-- hidden = findShadowedTime(gpaths[i0], flag_i, tj, width/2);
-- period = size_nondegenerate(gpaths[i0]);
-- if (hidden.max() > period ) hidden -= period;
-- if (hidden.min()<0){
-- dom = complementOf( Interval(0,hidden.max()) ,dom);
-- dom = complementOf( Interval(hidden.min()+period, period) ,dom);
-- }else{
-- dom = complementOf(hidden,dom);
-+ if (crossing_points[p].i == i0 && crossing_points[p].j == i0 && crossing_points[p].sign != 0 &&
-+ both) {
-+ hidden = findShadowedTime(gpaths[i0], flag_i, tj, width / 2);
-+ period = size_nondegenerate(gpaths[i0]);
-+ if (hidden.max() > period)
-+ hidden -= period;
-+ if (hidden.min() < 0) {
-+ dom = complementOf(Interval(0, hidden.max()), dom);
-+ dom = complementOf(Interval(hidden.min() + period, period), dom);
-+ }
-+ else {
-+ dom = complementOf(hidden, dom);
- }
- }
- }