diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-03-19 16:41:41 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-03-19 16:41:41 +0000 |
commit | 8981c3e4bd8be9eee73692f81fcc76bb960f096b (patch) | |
tree | 65b9f467a3a054314f89310468eb99c01f83f0ce /popup | |
parent | 48eabac3272eefbb60982430d764f68a8774f016 (diff) |
protect the call to canvas_create_editor(glist), because in Pd<0.42 it was canvas_create_editor(glist, doit)
svn path=/trunk/externals/bbogart/; revision=10875
Diffstat (limited to 'popup')
-rw-r--r-- | popup/popup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/popup/popup.c b/popup/popup.c index c2eb47b..d8414ca 100644 --- a/popup/popup.c +++ b/popup/popup.c @@ -328,7 +328,9 @@ static void popup_vis(t_gobj *z, t_glist *glist, int vis) /* JMZ: create an editor if there is none; * on 0.42 there might be none IF [popup] is contained within a gop */ - if (!glist->gl_editor) canvas_create_editor(glist); +#if PD_MINOR_VERSION > 41 + canvas_create_editor(glist); +#endif y = (t_rtext *) rtext_new(glist, (t_text *)z); #else y = (t_rtext *) rtext_new(glist, (t_text *)z,0,0); |