--- ray/src/util/do_options.tcl 1994/10/27 15:56:07 2.1 +++ ray/src/util/do_options.tcl 1995/02/22 20:48:49 2.5 @@ -11,11 +11,11 @@ proc amb_delete {} { # delete ambient file } set hl [string length [exec getinfo < $radvar(AMBFILE)]] set fl [file size $radvar(AMBFILE)] - set nv [expr ($fl - $hl - 3) / 75] - if {$nv && [tk_dialog .dlg {Verification} \ + set nv [expr ($fl - $hl - 2) / 75] + if {$nv > 50 && [tk_dialog .dlg {Verification} \ "Really delete ambient file $radvar(AMBFILE)\ - with $nv indirect irradiances values?" \ - questhead 1 {Delete} {Cancel}]} { + with $nv indirect irradiance values?" \ + questhead 0 {Delete} {Cancel}]} { return 0 } if [catch {exec rm $radvar(AMBFILE) < /dev/null} curmess] {return 0} @@ -109,7 +109,7 @@ proc do_options w { # Set up options screen place $w.revert -relwidth .1071 -relheight .0610 -relx .98 -rely .98 \ -anchor se helplink $w.revert trad options revert - button $w.copy -text Copy -relief raised -command {getfile \ + button $w.copy -text Copy -relief raised -command {getfile -grab \ -send copyopts -view view_txt -glob $rif_glob} place $w.copy -relwidth .1071 -relheight .0610 -relx .98 -rely .90 \ -anchor se