From 754dfa64779a34a2a00d447690a6f0f5849de719 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Thu, 24 Dec 2015 21:04:46 -0500
Subject: [PATCH] fix out of order message to GUI

---
 pd/src/g_template.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pd/src/g_template.c b/pd/src/g_template.c
index 903484476..b84aecebe 100644
--- a/pd/src/g_template.c
+++ b/pd/src/g_template.c
@@ -4981,6 +4981,8 @@ static void curve_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
             sprintf(tagbuf, "curve%lx.%lx", (long unsigned int)x,
                 (long unsigned int)data);
             gui_s(tagbuf);
+            gui_end_array(); /* end of tags array */
+            gui_end_vmess();
             if (!glist_istoplevel(glist))
             {
                 t_canvas *gl = glist_getcanvas(glist);
@@ -4992,8 +4994,6 @@ static void curve_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
                 canvas_restore_original_position(gl, (t_gobj *)glist,
                     objtag, -1);
             }
-            gui_end_array(); /* end of tags array */
-            gui_end_vmess();
         }
         else post("warning: curves need at least two points to be graphed");
     }
-- 
GitLab