Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
0a81b530
Commit
0a81b530
authored
Aug 28, 2015
by
Jonathan Wilkes
Browse files
Fix regression due to not checking for existence with scalar "Open" menu
parent
207ac829
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_editor.c
View file @
0a81b530
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment