From 8981c3e4bd8be9eee73692f81fcc76bb960f096b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 19 Mar 2009 16:41:41 +0000 Subject: 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 --- popup/popup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'popup/popup.c') 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); -- cgit v1.2.1