From 59c867e5571258e44bbde51408699ceaa6851fea Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sun, 8 Jan 2017 23:11:57 -0500 Subject: [PATCH] bugfix for scalar crasher after adding scalehandle logic for [unauthorized/grid] --- pd/src/g_editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 5312f23c2..598f245ad 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -3314,8 +3314,10 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which, extends well past the bounds of the bbox. For that reason we have a virtual waterfall of conditionals flowing all the way to the GUI just handle resizing a stupid rectangle. + + Also, the following conditional is way too complex. */ - if ((ob && ob->te_iemgui + if (ob && (ob->te_iemgui && pd_class((t_pd *)ob) != my_canvas_class || pd_class(&ob->te_pd)->c_name == gensym("Scope~") || pd_class(&ob->te_pd)->c_name == gensym("grid")) -- GitLab