From b07637b9c80f8def2c98a94f5a79eb37ab2b2a64 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Tue, 12 Mar 2013 22:35:43 -0400
Subject: [PATCH] hopefully fixed stray iemgui dialog error when returning from
 the custom color selection dialog

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

diff --git a/pd/src/pd.tk b/pd/src/pd.tk
index 8cf7bb051..748c3232d 100644
--- a/pd/src/pd.tk
+++ b/pd/src/pd.tk
@@ -4586,7 +4586,7 @@ proc iemgui_preset_col {id presetcol} {
     if { [eval concat $$var_iemgui_l2_f1_b0] == 0 } { set $var_iemgui_bcol $presetcol }
     if { [eval concat $$var_iemgui_l2_f1_b0] == 1 } { set $var_iemgui_fcol $presetcol }
     if { [eval concat $$var_iemgui_l2_f1_b0] == 2 } { set $var_iemgui_lcol $presetcol }
-    iemgui_set_col_example $id
+    catch { iemgui_set_col_example $id }
 }
 
 proc iemgui_choose_col_bkfrlb {id} {
@@ -4669,7 +4669,7 @@ proc iemgui_choose_col_bkfrlb {id} {
 		}
 	}
 
-    iemgui_set_col_example $id
+    catch { iemgui_set_col_example $id }
 }
 
 proc iemgui_lilo {id} {
-- 
GitLab