From 1743ab9a80ddaff6a04693c4604d9dca2e359a86 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Fri, 18 Feb 2011 15:22:00 -0500 Subject: [PATCH] Pd-0.42.5-extended-l2ork-dev-20110218.tar.bz2 --- src/g_editor.c | 4 +++- src/m_pd.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/g_editor.c b/src/g_editor.c index 5bab962ef..7bb75df61 100644 --- a/src/g_editor.c +++ b/src/g_editor.c @@ -240,6 +240,8 @@ void glist_select(t_glist *x, t_gobj *y) { if (x->gl_editor) { + if (c_selection && c_selection != x) + glist_noselect(c_selection); t_selection *sel = (t_selection *)getbytes(sizeof(*sel)); if (x->gl_editor->e_selectedline) glist_deselectline(x); @@ -3211,7 +3213,7 @@ static void canvas_dopaste(t_canvas *x, t_binbuf *b) int dspstate = canvas_suspend_dsp(), nbox, count; canvas_editmode(x, 1.); - if (x != c_selection) + if (c_selection && c_selection != x) glist_noselect(c_selection); else glist_noselect(x); diff --git a/src/m_pd.h b/src/m_pd.h index bad40a6c2..46955b681 100644 --- a/src/m_pd.h +++ b/src/m_pd.h @@ -11,7 +11,7 @@ extern "C" { #define PD_MAJOR_VERSION 0 #define PD_MINOR_VERSION 42 #define PD_BUGFIX_VERSION 5 -#define PD_TEST_VERSION "extended-l2ork-20110217" +#define PD_TEST_VERSION "extended-l2ork-20110218" /* old name for "MSW" flag -- we have to take it for the sake of many old "nmakefiles" for externs, which will define NT and not MSW */ -- GitLab