diff options
author | treectrl <treectrl> | 2006-10-30 23:50:18 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2006-10-30 23:50:18 (GMT) |
commit | 4aab45ec101cc9a333e043da462c13585c341094 (patch) | |
tree | 08a46a4c1b0b01fd1b86427835c5a340c55cc94e /generic | |
parent | edb84a8f80c44169df95b5b73b8db1d01722a1d1 (diff) | |
download | tktreectrl-4aab45ec101cc9a333e043da462c13585c341094.zip tktreectrl-4aab45ec101cc9a333e043da462c13585c341094.tar.gz tktreectrl-4aab45ec101cc9a333e043da462c13585c341094.tar.bz2 |
Fix a critical bug with OptionHax_Forget.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTreeUtils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTreeUtils.c b/generic/tkTreeUtils.c index 4c962ad..6c93f07 100644 --- a/generic/tkTreeUtils.c +++ b/generic/tkTreeUtils.c @@ -5,7 +5,7 @@ * * Copyright (c) 2002-2006 Tim Baker * - * RCS: @(#) $Id: tkTreeUtils.c,v 1.46 2006/10/28 01:21:51 treectrl Exp $ + * RCS: @(#) $Id: tkTreeUtils.c,v 1.47 2006/10/30 23:50:18 treectrl Exp $ */ #include "tkTreeCtrl.h" @@ -4605,7 +4605,7 @@ OptionHax_Forget( { int i; - for (i = 0; tree->optionHaxCnt; i++) { + for (i = 0; i < tree->optionHaxCnt; i++) { if (ptr == tree->optionHax[i]) { tree->optionHax[i] = tree->optionHax[--tree->optionHaxCnt]; /*dbwin("OptionHax_Forget %p\n", ptr);*/ |