1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: =?utf-8?q?IOhannes_m_zm=C3=B6lnig?= <zmoelnig@iem.at>
Date: Tue, 29 Jan 2019 11:26:08 +0100
Subject: Fixed undo for "tidy up" when nothing is selected.
Closes: https://github.com/pure-data/pure-data/issues/545
---
src/g_editor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/g_editor.c b/src/g_editor.c
index 34eac71..da1ef1e 100644
--- a/src/g_editor.c
+++ b/src/g_editor.c
@@ -4218,7 +4218,7 @@ static void canvas_tidy(t_canvas *x)
othewise just the selection */
int all = (x->gl_editor ? (x->gl_editor->e_selection == 0) : 1);
- canvas_undo_add(x, UNDO_MOTION, "motion", canvas_undo_set_move(x, 1));
+ canvas_undo_add(x, UNDO_MOTION, "{tidy up}", canvas_undo_set_move(x, !all));
/* tidy horizontally */
for (y = x->gl_list; y; y = y->g_next)
|