diff options
Diffstat (limited to 'ext/tk/lib/tkfont.rb')
-rw-r--r-- | ext/tk/lib/tkfont.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tkfont.rb b/ext/tk/lib/tkfont.rb index c56a8df506..d9eb8ecbed 100644 --- a/ext/tk/lib/tkfont.rb +++ b/ext/tk/lib/tkfont.rb @@ -564,7 +564,7 @@ class TkFont end def delete_core_tk4x - Tk_FontNameTBL[@id] = nil + Tk_FontNameTBL.delete(@id) Tk_FontUseTBL.delete_if{|key,value| value == self} end @@ -581,7 +581,7 @@ class TkFont tk_call('font', 'delete', @compoundfont) rescue end - Tk_FontNameTBL[@id] = nil + Tk_FontNameTBL.delete(@id) Tk_FontUseTBL.delete_if{|key,value| value == self} end @@ -610,7 +610,7 @@ class TkFont tk_call(w, 'configure', '-font', @latinfont) end rescue - Tk_FontUseTBL[w] = nil + Tk_FontUseTBL.delete(w) end end } @@ -644,7 +644,7 @@ class TkFont tk_call(w, 'configure', '-kanjifont', @kanjifont) end rescue - Tk_FontUseTBL[w] = nil + Tk_FontUseTBL.delete(w) end end } |