From e774602c15cbe37530460d11eba8636c77884e91 Mon Sep 17 00:00:00 2001 From: Miller Puckette <msp@ucsd.edu> Date: Tue, 20 May 2008 20:49:08 -0700 Subject: [PATCH] test --- src/g_editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_editor.c b/src/g_editor.c index 98d5599d0..3b9d5b2f0 100644 --- a/src/g_editor.c +++ b/src/g_editor.c @@ -979,7 +979,7 @@ void canvas_setgraph(t_glist *x, int flag, int nogoprect) { t_editor *editorwas = x->gl_editor; if (editorwas) - editor_free(x->gl_editor, x); + canvas_create_editor(x, 0); if (!flag && glist_isgraph(x)) { if (x->gl_owner && !x->gl_loading && glist_isvisible(x->gl_owner)) @@ -1023,8 +1023,8 @@ void canvas_setgraph(t_glist *x, int flag, int nogoprect) canvas_fixlinesfor(x->gl_owner, &x->gl_obj); } } - if (editorwas) - editor_new(x); + if (editorwas && !x->gl_editor) + canvas_create_editor(x, 0); } void garray_properties(t_garray *x); -- GitLab