summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08ba820)
raw | patch | inline | side by side (parent: 08ba820)
author | Paul Mackerras <paulus@samba.org> | |
Sun, 18 May 2008 23:48:45 +0000 (09:48 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 18 May 2008 23:48:45 +0000 (09:48 +1000) |
This fixes the Tk error "wrong # coordinates: expected 0 or 4, got 2"
that sometimes occurred when reloading. The problem was that we didn't
unset the variables containing the canvas item id numbers for the
displayed rows when we cleared the canvases. Thus make_secsel would
think it had something to do when it didn't.
Thanks to Michele Ballabio for finding a way to trigger the bug
reliably.
Signed-off-by: Paul Mackerras <paulus@samba.org>
that sometimes occurred when reloading. The problem was that we didn't
unset the variables containing the canvas item id numbers for the
displayed rows when we cleared the canvases. Thus make_secsel would
think it had something to do when it didn't.
Thanks to Michele Ballabio for finding a way to trigger the bug
reliably.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 9ab6dbaa460cc4c63398e836506c204d382419b4..998a05194204dbf238a792df19c2936c27941295 100755 (executable)
--- a/gitk
+++ b/gitk
proc clear_display {} {
global iddrawn linesegs need_redisplay nrows_drawn
global vhighlights fhighlights nhighlights rhighlights
+ global linehtag linentag linedtag
allcanvs delete all
catch {unset iddrawn}
catch {unset linesegs}
+ catch {unset linehtag}
+ catch {unset linentag}
+ catch {unset linedtag}
catch {unset vhighlights}
catch {unset fhighlights}
catch {unset nhighlights}