summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tktext.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-03 08:53:06 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-03 08:53:06 +0000
commit27816a0a002f0cf90dbae563b44e08264fbccac5 (patch)
tree284336ae2b7a477699fc0edcf58fe69bad723a65 /ext/tk/lib/tktext.rb
parent4a222197db3c25c0b9f2f2df057827d0b247f0bf (diff)
downloadruby-27816a0a002f0cf90dbae563b44e08264fbccac5.tar.gz
ruby-27816a0a002f0cf90dbae563b44e08264fbccac5.tar.xz
ruby-27816a0a002f0cf90dbae563b44e08264fbccac5.zip
* (bug fix) bug on Tk object ID management
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tktext.rb')
-rw-r--r--ext/tk/lib/tktext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/lib/tktext.rb b/ext/tk/lib/tktext.rb
index 6fa69aa59..ae40ac875 100644
--- a/ext/tk/lib/tktext.rb
+++ b/ext/tk/lib/tktext.rb
@@ -991,7 +991,7 @@ class TkTextMark<TkObject
TMarkID_TBL[@id] = self
TMarkID_TBL[@tpath] = {} unless TMarkID_TBL[@tpath]
TMarkID_TBL[@tpath][@id] = self
- Tk_TextMark_ID[0] = Tk_TextMark_ID[0].succ
+ Tk_TextMark_ID[1].succ!
tk_call @t.path, 'mark', 'set', @id, index
@t._addtag id, self
end