From 8f7a20e5760c01b7573ce01623397208be5b1766 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Thu, 16 Oct 2014 15:29:56 -0400 Subject: [PATCH] *fixed ocassional crasher on canvas_undo_move --- pd/src/g_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index a6d0c8452..c20fee498 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -1233,7 +1233,7 @@ void canvas_undo_move(t_canvas *x, void *z, int action) for (i = 0; i < buf->u_n; i++) { y = glist_nth(x, buf->u_vec[i].e_index); - glist_select(x, y); + if (y) glist_select(x, y); } //do_not_redraw = 0; //canvas_redraw(x); -- GitLab