From 2b88d866443df84e90fd02e7b1fd25221d839aef Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Fri, 18 Sep 2015 20:35:06 -0400
Subject: [PATCH] set dirty flag correctly when object/message box text changes

---
 pd/src/g_editor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index 9bd042b24..5f19bddb8 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -7694,7 +7694,8 @@ static void canvas_createobj(t_canvas *x, t_symbol *s, int argc, t_atom *argv)
 //            rtext_settext(rtext, buf, length);
 //            binbuf_free(b);
             // Set the dirty flag since we've changed the rtext content...
-            x->gl_editor->e_textdirty = 1;
+            canvas_dirty(x, 1);
+            //x->gl_editor->e_textdirty = 1;
             if (s == gensym("createobj"))
                 glist_deselect(x, y); // instantiate
             break;
-- 
GitLab