[前][次][番号順一覧][スレッド一覧]

ruby-changes:12399

From: nagai <ko1@a...>
Date: Tue, 14 Jul 2009 08:12:11 +0900 (JST)
Subject: [ruby-changes:12399] Ruby:r24098 (ruby_1_8): * ext/tk/lib/tk/menuspec.rb: commit miss on my last commitment.

nagai	2009-07-14 08:11:53 +0900 (Tue, 14 Jul 2009)

  New Revision: 24098

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24098

  Log:
    * ext/tk/lib/tk/menuspec.rb: commit miss on my last commitment.

  Modified files:
    branches/ruby_1_8/ext/tk/lib/tk/menuspec.rb

Index: ruby_1_8/ext/tk/lib/tk/menuspec.rb
===================================================================
--- ruby_1_8/ext/tk/lib/tk/menuspec.rb	(revision 24097)
+++ ruby_1_8/ext/tk/lib/tk/menuspec.rb	(revision 24098)
@@ -279,7 +279,7 @@
       end
     end
 
-    keys = default_opts.dup
+    keys = (default_opts)? default_opts.dup: {}
 
     tearoff = keys.delete('tearoff') if keys.key?('tearoff')
     tearoff = false unless tearoff # nil --> false

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]