Commit 18814505 authored by Nathan Lee's avatar Nathan Lee

LPE Knot: Allow crossing change when over same subpath

See #1311
(cherry picked from commit 586dfb0c)
parent dfaa5a55
Pipeline #143571780 passed with stages
in 89 minutes and 51 seconds
......@@ -462,9 +462,13 @@ LPEKnot::doEffect_path (Geom::PathVector const &path_in)
}
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);
// last check of sign makes sure we get different outputs when
// path components are part of the same subpath (i == j)
if (!(i == j && !both && crossing_points[p].sign * geom_sign > 0)) {
std::swap(i, j);
std::swap(ti, tj);
std::swap(flag_i, flag_j);
}
}
if (i0_is_under){
if ( prop_to_stroke_width.get_value() ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment