diff options
Diffstat (limited to 'pd/src/g_text.c')
-rw-r--r-- | pd/src/g_text.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pd/src/g_text.c b/pd/src/g_text.c index 30735918..535d993b 100644 --- a/pd/src/g_text.c +++ b/pd/src/g_text.c @@ -950,13 +950,14 @@ static void text_delete(t_gobj *z, t_glist *glist) canvas_deletelinesfor(glist, x); } - /* return true if the text box should be drawn. - We don't show object boxes inside graphs. */ + /* return true if the text box should be drawn. We don't show text boxes + inside graphs---except comments, if we're doing the new (goprect) style. */ int text_shouldvis(t_text *x, t_glist *glist) { return (glist->gl_havewindow || (x->te_pd != canvas_class && x->te_pd->c_wb != &text_widgetbehavior) || - (x->te_pd == canvas_class && (((t_glist *)x)->gl_isgraph))); + (x->te_pd == canvas_class && (((t_glist *)x)->gl_isgraph)) || + (glist->gl_goprect && (x->te_type == T_TEXT))); } static void text_vis(t_gobj *z, t_glist *glist, int vis) |