diff options
-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); |