Skip to content

Commit

Permalink
Fix a bug where commits with no children weren't marked as on-screen.
Browse files Browse the repository at this point in the history
This problem was revealed by running gitk --all on Wolfgang Denk's
u-boot repository.
  • Loading branch information
Paul Mackerras committed Aug 19, 2005
1 parent e5ea701 commit 022bc2a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ proc drawslants {id needonscreen nohs} {
}
if {$onscreen($id) == 0} {
lappend displist $id
set onscreen($id) 1
}

# remove the null entry if present
Expand Down Expand Up @@ -1186,15 +1187,10 @@ proc drawslants {id needonscreen nohs} {
set j [lsearch -exact $displist $id]
}
if {$j != $i || $xspc1($lineno) != $xspc1($lj)
|| ($olddlevel <= $i && $i <= $dlevel)
|| ($dlevel <= $i && $i <= $olddlevel)} {
|| ($olddlevel < $i && $i < $dlevel)
|| ($dlevel < $i && $i < $olddlevel)} {
set xj [xcoord $j $dlevel $lj]
set dx [expr {abs($xi - $xj)}]
set yb $y2
if {0 && $dx < $linespc} {
set yb [expr {$y1 + $dx}]
}
lappend mainline($id) $xi $y1 $xj $yb
lappend mainline($id) $xi $y1 $xj $y2
}
}
}
Expand Down

0 comments on commit 022bc2a

Please sign in to comment.