Commit a84d52ff authored by Ivica Bukvic's avatar Ivica Bukvic Committed by Albert Gräf
Browse files

*fixed multipatching segfault and improved 4th variant of multipatching logic.

parent 725d40d5
......@@ -4475,6 +4475,8 @@ int canvas_trymulticonnect(t_canvas *x, int xpos, int ypos, int which, int doit)
x, y1, sel->sel_what,
closest1, closest2, 1, 1);
}
else
closest1--;
}
}
}
......@@ -4488,7 +4490,7 @@ int canvas_trymulticonnect(t_canvas *x, int xpos, int ypos, int which, int doit)
if (sel->sel_what != y1 && sel->sel_what != y2)
{
ob1 = pd_checkobject(&sel->sel_what->g_pd);
noutlet1 = obj_ninlets(ob1);
noutlet1 = obj_noutlets(ob1);
closest2++;
if (closest2 >= ninlet2)
{
......@@ -4500,6 +4502,8 @@ int canvas_trymulticonnect(t_canvas *x, int xpos, int ypos, int which, int doit)
x, sel->sel_what, y2,
closest1, closest2, 1, 1);
}
else
closest2--;
}
}
}
......
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