Skip to content

Commit

Permalink
gitk: Fix bug introduced by "gitk: Fix "wrong # coordinates" error on…
Browse files Browse the repository at this point in the history
… reload"

Commit 94503a6 ("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>
  • Loading branch information
Paul Mackerras committed May 22, 2008
1 parent 94b4a69 commit a977953
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -5125,14 +5125,16 @@ 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}
catch {unset linesegs}
catch {unset linehtag}
catch {unset linentag}
catch {unset linedtag}
set boldrows {}
set boldnamerows {}
catch {unset vhighlights}
catch {unset fhighlights}
catch {unset nhighlights}
Expand Down

0 comments on commit a977953

Please sign in to comment.