diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-13 09:55:55 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-13 09:55:55 +0000 |
| commit | 672c9bc5efb267f05e0eb26a59415feb29401b84 (patch) | |
| tree | e687f750038efcce98a2fc25d900f7c27f597ec4 /ext | |
| parent | 6a124552fb6777d47ddee7e941f1c3dbeda55994 (diff) | |
| download | ruby-672c9bc5efb267f05e0eb26a59415feb29401b84.tar.gz ruby-672c9bc5efb267f05e0eb26a59415feb29401b84.tar.xz ruby-672c9bc5efb267f05e0eb26a59415feb29401b84.zip | |
* ext/tk/variable.rb: bug fix. additional trace definition changes the
option of first trace definition.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/tk/lib/tk/variable.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index ee60fcfc6..6a618e7ee 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) |
