aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_editor.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2009-09-01 18:22:23 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2009-09-01 18:22:23 +0000
commit22a829cb1907c79bfe68ad91314a1dddbf1beeb3 (patch)
tree510dcb1af070f5eac5b1192d9fffad2f3e431958 /pd/src/g_editor.c
parent1cc6aed4bfdd84b06d418bc5198a0380479e639a (diff)
merge in HC's new tcl code and start taking patches
svn path=/trunk/; revision=12166
Diffstat (limited to 'pd/src/g_editor.c')
-rw-r--r--pd/src/g_editor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index 7ef5266a..0890d465 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -2251,6 +2251,8 @@ restore:
static void canvas_cut(t_canvas *x)
{
+ if (!x->gl_editor) /* ignore if invisible */
+ return;
if (x->gl_editor && x->gl_editor->e_selectedline)
canvas_clearline(x);
else if (x->gl_editor->e_textedfor)
@@ -2343,6 +2345,8 @@ static void canvas_paste(t_canvas *x)
static void canvas_duplicate(t_canvas *x)
{
+ if (!x->gl_editor)
+ return;
if (x->gl_editor->e_onmotion == MA_NONE && x->gl_editor->e_selection)
{
t_selection *y;
@@ -2360,6 +2364,8 @@ static void canvas_duplicate(t_canvas *x)
static void canvas_selectall(t_canvas *x)
{
t_gobj *y;
+ if (!x->gl_editor)
+ return;
if (!x->gl_edit)
canvas_editmode(x, 1);
/* if everyone is already selected deselect everyone */