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>
Paul Mackerras committed
May 22, 2008 at 21:12 UTC
a977953326b5bc9556f2648a7327c623e676aaca
1 file changed
+3
-1
gitk
+3
-1
@@ -5125,7 +5125,7 @@ proc drawvisible {} {
5125
proc clear_display {} {
5126
global iddrawn linesegs need_redisplay nrows_drawn
5127
global vhighlights fhighlights nhighlights rhighlights
5128
- global linehtag linentag linedtag
5128
+ global linehtag linentag linedtag boldrows boldnamerows
5129
5130
allcanvs delete all
5131
catch {unset iddrawn}
@@ -5133,6 +5133,8 @@ proc clear_display {} {
5133
catch {unset linehtag}
5134
catch {unset linentag}
5135
catch {unset linedtag}
5136
+ set boldrows {}
5137
+ set boldnamerows {}
5138
catch {unset vhighlights}
5139
catch {unset fhighlights}
5140
catch {unset nhighlights}