Commit ea811da0 authored by Ivica Ico Bukvic's avatar Ivica Ico Bukvic Committed by Hans-Christoph Steiner
Browse files

Fixed segfault when trying to paste partially copied (and thus erroneous)...

Fixed segfault when trying to paste partially copied (and thus erroneous) patch from an external source (e.g. a text editor) where the copied contents contain only "connect" instructions.
parent a827d25f
......@@ -3788,6 +3788,10 @@ extern t_class *text_class;
void canvas_connect(t_canvas *x, t_floatarg fwhoout, t_floatarg foutno,
t_floatarg fwhoin, t_floatarg finno)
{
if (!x->gl_list) {
post("paste error: no objects to connect, probably incomplete clipboard copy from an external source (e.g. from a text editor)");
return;
}
int whoout = fwhoout, outno = foutno, whoin = fwhoin, inno = finno;
t_gobj *src = 0, *sink = 0;
t_object *objsrc, *objsink;
......
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