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>
Shawn O. Pearce committed
Nov 7, 2006 at 22:09 UTC
e4ee9af4946557370cfe18efdfa46c265a10639f
1 file changed
+1
-1
git-gui
+1
-1
@@ -819,7 +819,7 @@ proc display_file {path state} {
819
$new_w image create $lno.0 \
820
-align center -padx 5 -pady 1 \
821
-name [lindex $s 1] \
822
- -image [mapicon $m $path]
822
+ -image $new_icon
823
$new_w insert $lno.1 "$path\n"
824
$new_w conf -state disabled
825
} elseif {$new_icon != [mapicon $old_m $path]} {