aboutsummaryrefslogtreecommitdiff
path: root/popup/popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'popup/popup.c')
-rw-r--r--popup/popup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/popup/popup.c b/popup/popup.c
index 3529921..c2eb47b 100644
--- a/popup/popup.c
+++ b/popup/popup.c
@@ -325,6 +325,10 @@ static void popup_vis(t_gobj *z, t_glist *glist, int vis)
DEBUG(post("vis: %d",vis);)
if (vis) {
#ifdef PD_MINOR_VERSION
+ /* 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);
y = (t_rtext *) rtext_new(glist, (t_text *)z);
#else
y = (t_rtext *) rtext_new(glist, (t_text *)z,0,0);