From ba3abf209dde890878039ba03420cfd928cf8fc9 Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 13 Oct 2009 09:55:55 +0000 Subject: * ext/tk/variable.rb: bug fix. additional trace definition changes the option of first trace definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/tk/variable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index ee60fcfc6c..6a618e7ee8 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -1375,7 +1375,7 @@ end if @trace_opts == nil TkVar_CB_TBL[@id] = self - @trace_opts = opts + @trace_opts = opts.dup if USE_OLD_TRACE_OPTION_STYLE Tk.tk_call_without_enc('trace', 'variable', @id, @trace_opts, 'rb_var ' << @id) @@ -1421,7 +1421,7 @@ end if @trace_opts == nil TkVar_CB_TBL[@id] = self - @trace_opts = opts + @trace_opts = opts.dup if USE_OLD_TRACE_OPTION_STYLE Tk.tk_call_without_enc('trace', 'add', 'variable', @id, @trace_opts, 'rb_var ' << @id) -- cgit v1.2.3