1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

(bug fix) instance variable @frame was used without initializing on

TkComposite module


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2003-10-16 15:14:41 +00:00
parent 6559430fb7
commit 653ad6fd4b
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Oct 17 00:12:41 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk.rb: (bug fix) instance variable @frame was used
without initializing on TkComposite module
Thu Oct 16 23:51:04 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk.rb: If $DEBUG == true and some exception is caused

View file

@ -5664,16 +5664,17 @@ module TkComposite
def initialize(parent=nil, *args)
@delegates = {}
@delegates['DEFAULT'] = @frame
if parent.kind_of? Hash
keys = _symbolkey2str(parent)
parent = keys['parent']
keys['parent'] = @frame = TkFrame.new(parent)
@delegates['DEFAULT'] = @frame
@path = @epath = @frame.path
initialize_composite(keys)
else
@frame = TkFrame.new(parent)
@delegates['DEFAULT'] = @frame
@path = @epath = @frame.path
initialize_composite(*args)
end