Commit 0a81b530 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Fix regression due to not checking for existence with scalar "Open" menu

parent 207ac829
......@@ -2348,7 +2348,7 @@ static void canvas_rightclick(t_canvas *x, int xpos, int ypos, t_gobj *y_sel)
canopen = (y && zgetfn(&y->g_pd, gensym("menu-open")));
/* we add an extra check for scalars to enable the "Open" button
if they happen to have a canvas field inside them. */
if (pd_class(&y->g_pd) == scalar_class)
if (y && pd_class(&y->g_pd) == scalar_class)
{
if (scalar_getcanvasfield((t_scalar *)y))
scalar_has_canvas = 1;
......
Supports Markdown
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