From 42cb26a244a1c8bb9d57250f938c8fe4e68ca107 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Wed, 20 Aug 2014 16:43:48 -0400
Subject: [PATCH] *added tmpl check to remove compile warning

---
 pd/src/g_graph.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c
index cadaadb03..3f960b99d 100644
--- a/pd/src/g_graph.c
+++ b/pd/src/g_graph.c
@@ -245,7 +245,7 @@ void glist_delete(t_glist *x, t_gobj *y)
         if (chkdsp) canvas_update_dsp();
         if (drawcommand)
         {
-            if (!(canvas_isgroup(canvas) && canvas->gl_unloading))
+            if (tmpl && !(canvas_isgroup(canvas) && canvas->gl_unloading))
             {
                 canvas_redrawallfortemplate(tmpl, 1);
             }
-- 
GitLab