aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-05-22 21:12:19 +1000
committerPaul Mackerras <paulus@samba.org>2008-05-22 21:12:19 +1000
commita977953326b5bc9556f2648a7327c623e676aaca (patch)
tree753c1e8bf100336fbc48204e3e523d2b403a6aa5
parent94b4a69f758131a6282363e1717235a03c3885ef (diff)
downloadgit-a977953326b5bc9556f2648a7327c623e676aaca.tar.gz
git-a977953326b5bc9556f2648a7327c623e676aaca.tar.xz
gitk: Fix bug introduced by "gitk: Fix "wrong # coordinates" error on reload"
Commit 94503a66c56c935e77a8fbe3622f1f56b7134ccc ("gitk: Fix "wrong # coordinates" error on reload") was correct as far as it went, but introduced a problem because it didn't also clear out boldrows and boldnamerows in clear_display. This resulted in Tcl errors after scrolling through the graph for a while if some rows were highlighted. This fixes it. Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitk b/gitk
index 45ebcaf6d..22bcd18a4 100755
--- a/gitk
+++ b/gitk
@@ -5125,7 +5125,7 @@ proc drawvisible {} {
proc clear_display {} {
global iddrawn linesegs need_redisplay nrows_drawn
global vhighlights fhighlights nhighlights rhighlights
- global linehtag linentag linedtag
+ global linehtag linentag linedtag boldrows boldnamerows
allcanvs delete all
catch {unset iddrawn}
@@ -5133,6 +5133,8 @@ proc clear_display {} {
catch {unset linehtag}
catch {unset linentag}
catch {unset linedtag}
+ set boldrows {}
+ set boldnamerows {}
catch {unset vhighlights}
catch {unset fhighlights}
catch {unset nhighlights}