diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-11-07 22:09:55 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2006-11-07 23:48:23 -0500 |
commit | e4ee9af4946557370cfe18efdfa46c265a10639f (patch) | |
tree | c80710a41585939de234fbd78c8774566b3befb5 /git-gui | |
parent | bfe4c924da3853956d1b476afaa5f04429695223 (diff) | |
download | git-e4ee9af4946557370cfe18efdfa46c265a10639f.tar.gz git-e4ee9af4946557370cfe18efdfa46c265a10639f.tar.xz |
git-gui: Bug fix for bad variable reference in display_file.
When a file jumps between the file lists due to its state changing we
crashed thanks to a stale variable reference within the procedure as we
tried to setup the new icon.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
-rwxr-xr-x | git-gui | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -819,7 +819,7 @@ proc display_file {path state} { $new_w image create $lno.0 \ -align center -padx 5 -pady 1 \ -name [lindex $s 1] \ - -image [mapicon $m $path] + -image $new_icon $new_w insert $lno.1 "$path\n" $new_w conf -state disabled } elseif {$new_icon != [mapicon $old_m $path]} { |