Skip to content

Commit

Permalink
do not retext grabbed objects when ungrabbing them
Browse files Browse the repository at this point in the history
fixes a regression of 8f089c7
that would prevent autopatching (as whenever a new object gets created
with the old one not yet instantiated, the text would be lost)
  • Loading branch information
umlaeute committed Jun 3, 2022
1 parent 7823102 commit 48f229e
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/g_text.c
Expand Up @@ -40,19 +40,12 @@ static void glist_nograb(t_glist *x)
{
if (x->gl_editor)
{
if(x->gl_editor->e_textedfor)
{
rtext_retext(x->gl_editor->e_textedfor);
rtext_activate(x->gl_editor->e_textedfor, 0);
} else {
t_canvas *canvas = glist_getcanvas(x);
t_object *ob;
t_gobj*g;
for (g = canvas->gl_list; g; g = g->g_next)
if ((ob = pd_checkobject(&g->g_pd)) && T_ATOM == ob->te_type)
gatom_undarken(ob);

}
t_canvas *canvas = glist_getcanvas(x);
t_object *ob;
t_gobj*g;
for (g = canvas->gl_list; g; g = g->g_next)
if ((ob = pd_checkobject(&g->g_pd)) && T_ATOM == ob->te_type)
gatom_undarken(ob);
x->gl_editor->e_grab = 0;
}
}
Expand Down

0 comments on commit 48f229e

Please sign in to comment.