Skip to content

Commit

Permalink
gitk: Fix bug in highlight stuff when no line is selected
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed May 26, 2006
1 parent 60f7a7d commit 5864c08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ proc bolden {row font} {
global canv linehtag selectedline

$canv itemconf $linehtag($row) -font $font
if {$row == $selectedline} {
if {[info exists selectedline] && $row == $selectedline} {
$canv delete secsel
set t [eval $canv create rect [$canv bbox $linehtag($row)] \
-outline {{}} -tags secsel \
Expand All @@ -1673,7 +1673,7 @@ proc bolden_name {row font} {
global canv2 linentag selectedline

$canv2 itemconf $linentag($row) -font $font
if {$row == $selectedline} {
if {[info exists selectedline] && $row == $selectedline} {
$canv2 delete secsel
set t [eval $canv2 create rect [$canv2 bbox $linentag($row)] \
-outline {{}} -tags secsel \
Expand Down Expand Up @@ -1715,7 +1715,6 @@ proc addvhighlight {n} {

proc delvhighlight {} {
global hlview vhighlights
global selectedline

if {![info exists hlview]} return
unset hlview
Expand Down

0 comments on commit 5864c08

Please sign in to comment.