summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/vu/bargraph.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/vu/bargraph.rb')
-rw-r--r--ext/tk/lib/tkextlib/vu/bargraph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/vu/bargraph.rb b/ext/tk/lib/tkextlib/vu/bargraph.rb
index 1bcafc2887..b9fcf925f3 100644
--- a/ext/tk/lib/tkextlib/vu/bargraph.rb
+++ b/ext/tk/lib/tkextlib/vu/bargraph.rb
@@ -19,7 +19,7 @@ require 'tkextlib/vu.rb'
class Tk::Vu::Bargraph < TkWindow
TkCommandNames = ['::vu::bargraph'.freeze].freeze
WidgetClassName = 'Bargraph'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
###############################